Enum StoreAttributeDefinition.Type
- java.lang.Object
-
- java.lang.Enum<StoreAttributeDefinition.Type>
-
- com.unboundid.directory.sdk.broker.types.StoreAttributeDefinition.Type
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<StoreAttributeDefinition.Type>
- Enclosing class:
- StoreAttributeDefinition
public static enum StoreAttributeDefinition.Type extends java.lang.Enum<StoreAttributeDefinition.Type>
An enumeration of the data types for values.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StoreAttributeDefinition.Type
fromName(java.lang.String name)
Gets the Type matching the given name.java.lang.String
getName()
Gets the name of the type.static StoreAttributeDefinition.Type
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static StoreAttributeDefinition.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
STRING
public static final StoreAttributeDefinition.Type STRING
String datatype.
-
BOOLEAN
public static final StoreAttributeDefinition.Type BOOLEAN
Boolean datatype.
-
DECIMAL
public static final StoreAttributeDefinition.Type DECIMAL
Decimal datatype.
-
INTEGER
public static final StoreAttributeDefinition.Type INTEGER
Integer datatype.
-
DATETIME
public static final StoreAttributeDefinition.Type DATETIME
Datetime datatype.
-
BINARY
public static final StoreAttributeDefinition.Type BINARY
Binary datatype.
-
REFERENCE
public static final StoreAttributeDefinition.Type REFERENCE
Reference datatype.
-
COMPLEX
public static final StoreAttributeDefinition.Type COMPLEX
Complex datatype.
-
-
Method Detail
-
values
public static StoreAttributeDefinition.Type[] 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 (StoreAttributeDefinition.Type c : StoreAttributeDefinition.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StoreAttributeDefinition.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getName
public java.lang.String getName()
Gets the name of the type.- Returns:
- the name of the type.
-
fromName
public static StoreAttributeDefinition.Type fromName(java.lang.String name)
Gets the Type matching the given name. Throws a runtime exception if the Type cannot be found because an invalid name was given.- Parameters:
name
- the name of the type.- Returns:
- the type matching the given name.
-
-