Package com.orchestranetworks.service
Enum ValueContextForUpdate.ValidationPolicy
- java.lang.Object
-
- java.lang.Enum<ValueContextForUpdate.ValidationPolicy>
-
- com.orchestranetworks.service.ValueContextForUpdate.ValidationPolicy
-
- All Implemented Interfaces:
Serializable,Comparable<ValueContextForUpdate.ValidationPolicy>
- Enclosing interface:
- ValueContextForUpdate
public static enum ValueContextForUpdate.ValidationPolicy extends Enum<ValueContextForUpdate.ValidationPolicy>
Defines the policy for validating this content.- Since:
- 6.0.0
- See Also:
ValueContextForUpdate.getValidationReport(ValidationPolicy)
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FULLSpecifies that the validation of this content must take into account all the constraints defined by the underlying data model.USER_INPUTSSpecifies that the validation of this content must be done according to the policy of the user interface.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ValueContextForUpdate.ValidationPolicyvalueOf(String name)Returns the enum constant of this type with the specified name.static ValueContextForUpdate.ValidationPolicy[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
FULL
public static final ValueContextForUpdate.ValidationPolicy FULL
Specifies that the validation of this content must take into account all the constraints defined by the underlying data model.
-
USER_INPUTS
public static final ValueContextForUpdate.ValidationPolicy USER_INPUTS
Specifies that the validation of this content must be done according to the policy of the user interface. That is, in addition to checking all constraints defined by the underlying data model, the following specificities are applied:-
Mandatory fields (using the property
xs:minOccurs=1) are checked only if the propertyosd:checkNullInput=trueis set on the associated node in the data model. -
Cardinality constraints on aggregated lists (using the property
xs:minOccurs > 1andxs:maxOccurs > 1) are not checked.
-
Mandatory fields (using the property
-
-
Method Detail
-
values
public static ValueContextForUpdate.ValidationPolicy[] 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 (ValueContextForUpdate.ValidationPolicy c : ValueContextForUpdate.ValidationPolicy.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ValueContextForUpdate.ValidationPolicy 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
-
-