Package net.fortuna.ical4j.validate
Enum ValidationRule.ValidationType
- java.lang.Object
-
- java.lang.Enum<ValidationRule.ValidationType>
-
- net.fortuna.ical4j.validate.ValidationRule.ValidationType
-
- All Implemented Interfaces:
Serializable
,Comparable<ValidationRule.ValidationType>
- Enclosing class:
- ValidationRule<T>
public static enum ValidationRule.ValidationType extends Enum<ValidationRule.ValidationType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AllOrNone
None
One
OneExclusive
OneOrLess
OneOrMore
ValueMatch
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getDescription()
static ValidationRule.ValidationType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ValidationRule.ValidationType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final ValidationRule.ValidationType None
-
One
public static final ValidationRule.ValidationType One
-
OneOrLess
public static final ValidationRule.ValidationType OneOrLess
-
OneOrMore
public static final ValidationRule.ValidationType OneOrMore
-
OneExclusive
public static final ValidationRule.ValidationType OneExclusive
-
AllOrNone
public static final ValidationRule.ValidationType AllOrNone
-
ValueMatch
public static final ValidationRule.ValidationType ValueMatch
-
-
Method Detail
-
values
public static ValidationRule.ValidationType[] 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 (ValidationRule.ValidationType c : ValidationRule.ValidationType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValidationRule.ValidationType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
getDescription
public String getDescription()
-
-