T - the actual type this ExtensionFieldType representspublic abstract class ExtensionFieldType<T> extends Object implements Serializable
String.| Modifier and Type | Field and Description |
|---|---|
static ExtensionFieldType<String> |
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> |
DATETIME
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) |
| Constructor and Description |
|---|
ExtensionFieldType(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected InvalidInputException |
createValidationException(String stringValue,
String targerType) |
protected void |
ensureValueIsNotNull(Object value) |
abstract Object |
from(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<String> BINARY
ByteBuffer)public static final ExtensionFieldType<URI> REFERENCE
URI)public static final ExtensionFieldType<Date> DATETIME
Date). Valid values are in ISO DateTimeFormat with the timeZone UTC like
'2011-08-01T18:29:49.000Z'public ExtensionFieldType(String 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 nameInvalidInputException - if there is no ExtensionFieldType with the given namepublic 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.protected void ensureValueIsNotNull(Object value)
protected InvalidInputException createValidationException(String stringValue, String targerType)
Copyright © 2022 SAP SE. All rights reserved.