com.unboundid.scim.schema
Enum AttributeDescriptor.DataType

java.lang.Object
  extended by java.lang.Enum<AttributeDescriptor.DataType>
      extended by com.unboundid.scim.schema.AttributeDescriptor.DataType
All Implemented Interfaces:
Serializable, Comparable<AttributeDescriptor.DataType>
Enclosing class:
AttributeDescriptor

public static enum AttributeDescriptor.DataType
extends Enum<AttributeDescriptor.DataType>

Defines the set of well known SCIM supported datatypes.


Enum Constant Summary
BINARY
          Binary data type.
BOOLEAN
          Boolean data type.
COMPLEX
          Complex data type.
DATETIME
          Date Time data type.
DECIMAL
          Decimal data type.
INTEGER
          Integer data type.
STRING
          String data type.
 
Method Summary
static AttributeDescriptor.DataType parse(String type)
          Parses a supplied data type into a SCIM defined data type.
 String toString()
          
static AttributeDescriptor.DataType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AttributeDescriptor.DataType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STRING

public static final AttributeDescriptor.DataType STRING
String data type.


BOOLEAN

public static final AttributeDescriptor.DataType BOOLEAN
Boolean data type.


DATETIME

public static final AttributeDescriptor.DataType DATETIME
Date Time data type.


DECIMAL

public static final AttributeDescriptor.DataType DECIMAL
Decimal data type.


INTEGER

public static final AttributeDescriptor.DataType INTEGER
Integer data type.


BINARY

public static final AttributeDescriptor.DataType BINARY
Binary data type.


COMPLEX

public static final AttributeDescriptor.DataType COMPLEX
Complex data type.

Method Detail

values

public static AttributeDescriptor.DataType[] 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 (AttributeDescriptor.DataType c : AttributeDescriptor.DataType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AttributeDescriptor.DataType 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 name
NullPointerException - if the argument is null

parse

public static AttributeDescriptor.DataType parse(String type)
Parses a supplied data type into a SCIM defined data type.

Parameters:
type - The type to convert
Returns:
The DataType or null if not supported

toString

public String toString()

Overrides:
toString in class Enum<AttributeDescriptor.DataType>


Copyright © 2011-2012 UnboundID. All Rights Reserved.