T - The Java class to resolve.public abstract class AttributeValueResolver<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static AttributeValueResolver<byte[]> |
BINARY_RESOLVER
The
AttributeValueResolver that resolves SCIM attribute values
to/from byte[] instances. |
static AttributeValueResolver<Boolean> |
BOOLEAN_RESOLVER
The
AttributeValueResolver that resolves SCIM attribute values
to/from Boolean instances. |
static AttributeValueResolver<ComplexValue> |
COMPLEX_RESOLVER
A default
AttributeValueResolver for complex SCIM attribute
values. |
static AttributeValueResolver<Date> |
DATE_RESOLVER
The
AttributeValueResolver that resolves SCIM attribute values
to/from String instances. |
static AttributeValueResolver<Double> |
DECIMAL_RESOLVER
The
AttributeValueResolver that resolves SCIM attribute values
to/from Decimal instances. |
static AttributeValueResolver<Long> |
INTEGER_RESOLVER
The
AttributeValueResolver that resolves SCIM attribute values
to/from Integer instances. |
static AttributeValueResolver<String> |
STRING_RESOLVER
The
AttributeValueResolver that resolves SCIM attribute values
to/from String instances. |
| Constructor and Description |
|---|
AttributeValueResolver() |
| Modifier and Type | Method and Description |
|---|---|
abstract SCIMAttributeValue |
fromInstance(AttributeDescriptor attributeDescriptor,
T value)
Create a SCIM attribute value from the given instance.
|
abstract T |
toInstance(SCIMAttributeValue value)
Create an instance from the given attribute value.
|
public static final AttributeValueResolver<String> STRING_RESOLVER
AttributeValueResolver that resolves SCIM attribute values
to/from String instances.public static final AttributeValueResolver<Date> DATE_RESOLVER
AttributeValueResolver that resolves SCIM attribute values
to/from String instances.public static final AttributeValueResolver<Boolean> BOOLEAN_RESOLVER
AttributeValueResolver that resolves SCIM attribute values
to/from Boolean instances.public static final AttributeValueResolver<byte[]> BINARY_RESOLVER
AttributeValueResolver that resolves SCIM attribute values
to/from byte[] instances.public static final AttributeValueResolver<Double> DECIMAL_RESOLVER
AttributeValueResolver that resolves SCIM attribute values
to/from Decimal instances.public static final AttributeValueResolver<Long> INTEGER_RESOLVER
AttributeValueResolver that resolves SCIM attribute values
to/from Integer instances.public static final AttributeValueResolver<ComplexValue> COMPLEX_RESOLVER
AttributeValueResolver for complex SCIM attribute
values. Resolves to/from a ComplexValue instance.public AttributeValueResolver()
public abstract T toInstance(SCIMAttributeValue value)
value - The value to create an instance from.public abstract SCIMAttributeValue fromInstance(AttributeDescriptor attributeDescriptor, T value) throws InvalidResourceException
attributeDescriptor - The descriptor for the attribute to create.value - The instance.InvalidResourceException - if the value violates the schema.Copyright © 2011–2016 UnboundID. All rights reserved.