Enum 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>
- 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 whatPropertyDefinition's own getters return). Primarily consumed by documentation generation.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DESCRIPTIONHuman-readable documentation of the field's purpose.MANDATORYWhether the field key must be present in the JSON payload.MIN_MAXNumeric boundaries or length constraints for the property value.NAMEThe identifier of the property field.READ_ONLYWhether the property value is immutable after initial creation.REGEXA Regular Expression pattern validating the property value's string representation.TYPEThe data type of the property.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns a human-readable description of this attribute, e.g.StringgetLabel()Returns the display label of this attribute, e.g.static PropertyDefinition.PropertyAttributevalueOf(String name)Returns the enum constant of this type with the specified name.static PropertyDefinition.PropertyAttribute[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NAME
public static final PropertyDefinition.PropertyAttribute NAME
The identifier of the property field.
-
TYPE
public static final PropertyDefinition.PropertyAttribute TYPE
The data type of the property.
-
DESCRIPTION
public static final PropertyDefinition.PropertyAttribute DESCRIPTION
Human-readable documentation of the field's purpose.
-
MANDATORY
public static final PropertyDefinition.PropertyAttribute MANDATORY
Whether the field key must be present in the JSON payload.
-
READ_ONLY
public static final PropertyDefinition.PropertyAttribute READ_ONLY
Whether the property value is immutable after initial creation.
-
MIN_MAX
public static final PropertyDefinition.PropertyAttribute MIN_MAX
Numeric boundaries or length constraints for the property value.
-
REGEX
public static final PropertyDefinition.PropertyAttribute REGEX
A Regular Expression pattern validating the property value's string representation.
-
-
Method Detail
-
values
public static PropertyDefinition.PropertyAttribute[] 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 (PropertyDefinition.PropertyAttribute c : PropertyDefinition.PropertyAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyDefinition.PropertyAttribute 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
-
getLabel
public String getLabel()
Returns the display label of this attribute, e.g. for documentation generation.- Returns:
- The label.
-
getDescription
public String getDescription()
Returns a human-readable description of this attribute, e.g. for documentation generation.- Returns:
- The description.
-
-