jetbrains.buildServer.requirements
Enum RequirementType

java.lang.Object
  extended by java.lang.Enum<RequirementType>
      extended by jetbrains.buildServer.requirements.RequirementType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<RequirementType>

public enum RequirementType
extends java.lang.Enum<RequirementType>


Enum Constant Summary
ANY
           
CONTAINS
           
DOES_NOT_CONTAIN
           
DOES_NOT_EQUAL
           
DOES_NOT_MATCH
           
ENDS_WITH
           
EQUALS
           
EXISTS
           
LESS_THAN
           
MATCHES
           
MORE_THAN
           
NO_LESS_THAN
           
NO_MORE_THAN
           
NOT_EXISTS
           
STARTS_WITH
           
VER_LESS_THAN
           
VER_MORE_THAN
           
VER_NO_LESS_THAN
           
VER_NO_MORE_THAN
           
 
Field Summary
static java.util.List<RequirementType> ALL_REQUIREMENT_TYPES
           
 
Method Summary
static RequirementType findByName(java.lang.String name)
           
 java.lang.String getDisplayName()
           
 java.lang.String getName()
           
 boolean isActualValueCanBeEmpty()
          Return true if not empty value of actual property value is required
 boolean isActualValueRequired()
          Return true if actual property value is required
 boolean isParameterCanBeEmpty()
          Return true if not empty value is required for requirement parameter
 boolean isParameterRequired()
          Return true if requirement parameter is required
 boolean match(Requirement requirement, java.util.Map<java.lang.String,java.lang.String> properties, boolean ignoreCaseForEnv)
           
abstract  boolean matchValues(java.lang.String requirementParameter, java.lang.String actualValue)
           
 Requirement readFrom(org.jdom.Element xmlElement)
           
protected  Requirement readInternal(java.lang.String propName, java.lang.String propValue)
           
static RequirementType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RequirementType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 void writeTo(org.jdom.Element xmlElement, Requirement requirementParameter)
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXISTS

public static final RequirementType EXISTS

NOT_EXISTS

public static final RequirementType NOT_EXISTS

EQUALS

public static final RequirementType EQUALS

DOES_NOT_EQUAL

public static final RequirementType DOES_NOT_EQUAL

MORE_THAN

public static final RequirementType MORE_THAN

NO_MORE_THAN

public static final RequirementType NO_MORE_THAN

LESS_THAN

public static final RequirementType LESS_THAN

NO_LESS_THAN

public static final RequirementType NO_LESS_THAN

STARTS_WITH

public static final RequirementType STARTS_WITH

CONTAINS

public static final RequirementType CONTAINS

DOES_NOT_CONTAIN

public static final RequirementType DOES_NOT_CONTAIN

ENDS_WITH

public static final RequirementType ENDS_WITH

MATCHES

public static final RequirementType MATCHES

DOES_NOT_MATCH

public static final RequirementType DOES_NOT_MATCH

VER_MORE_THAN

public static final RequirementType VER_MORE_THAN

VER_NO_MORE_THAN

public static final RequirementType VER_NO_MORE_THAN

VER_LESS_THAN

public static final RequirementType VER_LESS_THAN

VER_NO_LESS_THAN

public static final RequirementType VER_NO_LESS_THAN

ANY

public static final RequirementType ANY
Field Detail

ALL_REQUIREMENT_TYPES

public static final java.util.List<RequirementType> ALL_REQUIREMENT_TYPES
Method Detail

values

public static RequirementType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (RequirementType c : RequirementType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static RequirementType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getDisplayName

public java.lang.String getDisplayName()

getName

public final java.lang.String getName()

readFrom

@Nullable
public Requirement readFrom(org.jdom.Element xmlElement)

writeTo

public void writeTo(org.jdom.Element xmlElement,
                    Requirement requirementParameter)

findByName

@Nullable
public static RequirementType findByName(java.lang.String name)

readInternal

protected Requirement readInternal(java.lang.String propName,
                                   java.lang.String propValue)

isParameterRequired

public boolean isParameterRequired()
Return true if requirement parameter is required

Returns:
if value required.

isParameterCanBeEmpty

public boolean isParameterCanBeEmpty()
Return true if not empty value is required for requirement parameter

Returns:
if not empty value required.

isActualValueRequired

public boolean isActualValueRequired()
Return true if actual property value is required

Returns:
if value required.

isActualValueCanBeEmpty

public boolean isActualValueCanBeEmpty()
Return true if not empty value of actual property value is required

Returns:
if not empty value required.

matchValues

public abstract boolean matchValues(java.lang.String requirementParameter,
                                    java.lang.String actualValue)

match

public boolean match(Requirement requirement,
                     java.util.Map<java.lang.String,java.lang.String> properties,
                     boolean ignoreCaseForEnv)