Package io.jans.scim.model.scim2
Enum AttributeDefinition.Type
- java.lang.Object
-
- java.lang.Enum<AttributeDefinition.Type>
-
- io.jans.scim.model.scim2.AttributeDefinition.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<AttributeDefinition.Type>
- Enclosing class:
- AttributeDefinition
public static enum AttributeDefinition.Type extends Enum<AttributeDefinition.Type>
An enumeration of the data types for attributes or subattributes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the type name as in section 7 of RFC7643.static AttributeDefinition.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static AttributeDefinition.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 AttributeDefinition.Type STRING
-
BOOLEAN
public static final AttributeDefinition.Type BOOLEAN
-
DECIMAL
public static final AttributeDefinition.Type DECIMAL
-
INTEGER
public static final AttributeDefinition.Type INTEGER
-
DATETIME
public static final AttributeDefinition.Type DATETIME
-
BINARY
public static final AttributeDefinition.Type BINARY
-
REFERENCE
public static final AttributeDefinition.Type REFERENCE
-
COMPLEX
public static final AttributeDefinition.Type COMPLEX
-
-
Method Detail
-
values
public static AttributeDefinition.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 (AttributeDefinition.Type c : AttributeDefinition.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 AttributeDefinition.Type 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
-
getName
public String getName()
Returns the type name as in section 7 of RFC7643.- Returns:
- A string value
-
-