Enum Class PropertyDefinition.PropertyAttribute
java.lang.Object
java.lang.Enum<PropertyDefinition.PropertyAttribute>
org.gcube.informationsystem.types.reference.properties.PropertyDefinition.PropertyAttribute
- All Implemented Interfaces:
Serializable,Comparable<PropertyDefinition.PropertyAttribute>,Constable
- Enclosing interface:
- PropertyDefinition
public static enum PropertyDefinition.PropertyAttribute
extends Enum<PropertyDefinition.PropertyAttribute>
Documents the fixed, schema-level attributes every property field carries in a Type
Schema -- a glossary of the schema language itself, not a specific property's actual
value (that is what
PropertyDefinition's own getters return). Primarily
consumed by documentation generation.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHuman-readable documentation of the field's purpose.Whether the field key must be present in the JSON payload.Numeric boundaries or length constraints for the property value.The identifier of the property field.Whether the property value is immutable after initial creation.A Regular Expression pattern validating the property value's string representation.The data type of the property. -
Method Summary
Modifier and TypeMethodDescriptionReturns a human-readable description of this attribute, e.g. for documentation generation.getLabel()Returns the display label of this attribute, e.g. for documentation generation.Returns the enum constant of this class with the specified name.static PropertyDefinition.PropertyAttribute[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NAME
The identifier of the property field. -
TYPE
The data type of the property. -
DESCRIPTION
Human-readable documentation of the field's purpose. -
MANDATORY
Whether the field key must be present in the JSON payload. -
READ_ONLY
Whether the property value is immutable after initial creation. -
MIN_MAX
Numeric boundaries or length constraints for the property value. -
REGEX
A Regular Expression pattern validating the property value's string representation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getLabel
Returns the display label of this attribute, e.g. for documentation generation.- Returns:
- The label.
-
getDescription
Returns a human-readable description of this attribute, e.g. for documentation generation.- Returns:
- The description.
-