com.unboundid.scim.data
Class AttributeValueResolver<T>

java.lang.Object
  extended by com.unboundid.scim.data.AttributeValueResolver<T>
Type Parameters:
T - The Java class to resolve.

public abstract class AttributeValueResolver<T>
extends Object

Used to resolve SCIM attribute values to Java instances.


Field Summary
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<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 Summary
AttributeValueResolver()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STRING_RESOLVER

public static final AttributeValueResolver<String> STRING_RESOLVER
The AttributeValueResolver that resolves SCIM attribute values to/from String instances.


DATE_RESOLVER

public static final AttributeValueResolver<Date> DATE_RESOLVER
The AttributeValueResolver that resolves SCIM attribute values to/from String instances.


BOOLEAN_RESOLVER

public static final AttributeValueResolver<Boolean> BOOLEAN_RESOLVER
The AttributeValueResolver that resolves SCIM attribute values to/from Boolean instances.


BINARY_RESOLVER

public static final AttributeValueResolver<byte[]> BINARY_RESOLVER
The AttributeValueResolver that resolves SCIM attribute values to/from byte[] instances.


DECIMAL_RESOLVER

public static final AttributeValueResolver<Double> DECIMAL_RESOLVER
The AttributeValueResolver that resolves SCIM attribute values to/from Decimal instances.


INTEGER_RESOLVER

public static final AttributeValueResolver<Long> INTEGER_RESOLVER
The AttributeValueResolver that resolves SCIM attribute values to/from Integer instances.

Constructor Detail

AttributeValueResolver

public AttributeValueResolver()
Method Detail

toInstance

public abstract T toInstance(SCIMAttributeValue value)
Create an instance from the given attribute value.

Parameters:
value - The value to create an instance from.
Returns:
The instance created from the attribute value.

fromInstance

public abstract SCIMAttributeValue fromInstance(AttributeDescriptor attributeDescriptor,
                                                T value)
                                         throws InvalidResourceException
Create a SCIM attribute value from the given instance.

Parameters:
attributeDescriptor - The descriptor for the attribute to create.
value - The instance.
Returns:
The SCIM attribute value created from the instance.
Throws:
InvalidResourceException - if the value violates the schema.


Copyright © 2011-2012 UnboundID. All Rights Reserved.