T - the actual type this ExtensionFieldType representspublic abstract class ExtensionFieldType<T> extends Object
String.| Modifier and Type | Field and Description |
|---|---|
static ExtensionFieldType<ByteBuffer> |
BINARY
ExtensionFieldType for the Scim type Binary (actual type is
ByteBuffer) |
static ExtensionFieldType<Boolean> |
BOOLEAN
ExtensionFieldType for the Scim type Boolean (actual type is
Boolean) |
static ExtensionFieldType<Date> |
DATE_TIME
ExtensionFieldType for the Scim type DateTime (actual type is
Date). |
static ExtensionFieldType<BigDecimal> |
DECIMAL
ExtensionFieldType for the Scim type Decimal (actual type is
BigDecimal) |
static ExtensionFieldType<BigInteger> |
INTEGER
ExtensionFieldType for the Scim type Integer (actual type is
BigInteger) |
static ExtensionFieldType<URI> |
REFERENCE
ExtensionFieldType for the Scim type Reference (actual type is
URI) |
static ExtensionFieldType<String> |
STRING
ExtensionFieldType for the Scim type String (actual type is
String) |
| Modifier and Type | Method and Description |
|---|---|
protected IllegalArgumentException |
createConversionException(String stringValue,
String targetType) |
protected IllegalArgumentException |
createConversionException(String stringValue,
String targetType,
Throwable cause) |
protected void |
ensureValueIsNotNull(Object value) |
abstract T |
fromString(String stringValue)
Converts the given
String to the actual type. |
String |
getName()
Returns the name of the
ExtensionFieldType |
String |
toString()
Returns a string representation of the
ExtensionFieldType which is its name. |
abstract String |
toString(T value)
Converts a value of the actual type to
String. |
static ExtensionFieldType<?> |
valueOf(String name)
Retrieves a
ExtensionFieldType by its name. |
public static final ExtensionFieldType<String> STRING
String)public static final ExtensionFieldType<BigInteger> INTEGER
BigInteger)public static final ExtensionFieldType<BigDecimal> DECIMAL
BigDecimal)public static final ExtensionFieldType<Boolean> BOOLEAN
Boolean)public static final ExtensionFieldType<Date> DATE_TIME
Date). Valid values are in ISO
DateTimeFormat with the timeZone UTC like '2011-08-01T18:29:49.000Z'public static final ExtensionFieldType<ByteBuffer> BINARY
ByteBuffer)public static final ExtensionFieldType<URI> REFERENCE
URI)public abstract T fromString(String stringValue)
String to the actual type.public abstract String toString(T value)
String.value - the value to be convertedStringpublic final String getName()
ExtensionFieldTypeExtensionFieldTypepublic String toString()
ExtensionFieldType which is its name.public static ExtensionFieldType<?> valueOf(String name)
ExtensionFieldType by its name.name - the name of the ExtensionFieldType as it is returned by toString()ExtensionFieldType based on the given nameIllegalArgumentException - if there is no ExtensionFieldType with the given nameprotected IllegalArgumentException createConversionException(String stringValue, String targetType, Throwable cause)
protected IllegalArgumentException createConversionException(String stringValue, String targetType)
protected void ensureValueIsNotNull(Object value)
Copyright © 2014. All Rights Reserved.