Enum AdaptationConstraint
- java.lang.Object
-
- java.lang.Enum<AdaptationConstraint>
-
- com.opencloud.tools.cgin.scenario.schema.annotations.AdaptationConstraint
-
- All Implemented Interfaces:
Serializable
,Comparable<AdaptationConstraint>
public enum AdaptationConstraint extends Enum<AdaptationConstraint>
AdaptationConstraints can be added to anAdaptationType
, to indicate a constraint which should be placed on the generated schema type.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHOICE_TYPE
Indicates that the generated structured type should be considered a "choice" type, such that only one of its child elements may be specified.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AdaptationConstraint
valueOf(String name)
Returns the enum constant of this type with the specified name.static AdaptationConstraint[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CHOICE_TYPE
public static final AdaptationConstraint CHOICE_TYPE
Indicates that the generated structured type should be considered a "choice" type, such that only one of its child elements may be specified.
-
-
Method Detail
-
values
public static AdaptationConstraint[] 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 (AdaptationConstraint c : AdaptationConstraint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AdaptationConstraint 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
-
-