Enum PropertyTypeName.BaseTypeGroup
- java.lang.Object
-
- java.lang.Enum<PropertyTypeName.BaseTypeGroup>
-
- org.gcube.informationsystem.types.PropertyTypeName.BaseTypeGroup
-
- All Implemented Interfaces:
Serializable,Comparable<PropertyTypeName.BaseTypeGroup>
- Enclosing class:
- PropertyTypeName
public static enum PropertyTypeName.BaseTypeGroup extends Enum<PropertyTypeName.BaseTypeGroup>
Groups of base types.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ANYEvery base type, with no restriction.BITSThe binary base types: Binary and Byte.BOOLEANOnly the boolean base type.COLLECTIONThe collection base types List and Set (not Map, tracked separately since its key is always String).COMPLEXOnly the Property base type: a reference to another Property-family type.DATEOnly the date base type.MAPOnly the Map base type.NUMERICThe numeric base types: Integer, Short, Long, Float, Double.STRINGOnly the string base type.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()Returns a human-readable description of this group, e.g.PropertyTypeName.BaseType[]getGroup()Returns the group of base types.static PropertyTypeName.BaseTypeGroupvalueOf(String name)Returns the enum constant of this type with the specified name.static PropertyTypeName.BaseTypeGroup[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ANY
public static final PropertyTypeName.BaseTypeGroup ANY
Every base type, with no restriction.
-
BOOLEAN
public static final PropertyTypeName.BaseTypeGroup BOOLEAN
Only the boolean base type.
-
NUMERIC
public static final PropertyTypeName.BaseTypeGroup NUMERIC
The numeric base types: Integer, Short, Long, Float, Double.
-
STRING
public static final PropertyTypeName.BaseTypeGroup STRING
Only the string base type.
-
DATE
public static final PropertyTypeName.BaseTypeGroup DATE
Only the date base type.
-
BITS
public static final PropertyTypeName.BaseTypeGroup BITS
The binary base types: Binary and Byte.
-
COMPLEX
public static final PropertyTypeName.BaseTypeGroup COMPLEX
Only the Property base type: a reference to another Property-family type.
-
COLLECTION
public static final PropertyTypeName.BaseTypeGroup COLLECTION
The collection base types List and Set (not Map, tracked separately since its key is always String).
-
MAP
public static final PropertyTypeName.BaseTypeGroup MAP
Only the Map base type.
-
-
Method Detail
-
values
public static PropertyTypeName.BaseTypeGroup[] 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 (PropertyTypeName.BaseTypeGroup c : PropertyTypeName.BaseTypeGroup.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PropertyTypeName.BaseTypeGroup 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
-
getGroup
public PropertyTypeName.BaseType[] getGroup()
Returns the group of base types.- Returns:
- The group of base types.
-
getDescription
public String getDescription()
Returns a human-readable description of this group, e.g. for documentation generation.- Returns:
- The description.
-
-