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

java.lang.Object
  extended by com.unboundid.scim.data.Entry<T>
Type Parameters:
T - The value type.

public final class Entry<T>
extends Object

Represents a standard value of a multi-valued attribute.


Field Summary
static AttributeValueResolver<Entry<byte[]>> BINARIES_RESOLVER
          The AttributeValueResolver that resolves SCIM attribute values to/from byte[] valued Entry instances.
static AttributeValueResolver<Entry<Boolean>> BOOLEANS_RESOLVER
          The AttributeValueResolver that resolves SCIM attribute values to/from Boolean valued Entry instances.
static AttributeValueResolver<Entry<Date>> DATES_RESOLVER
          The AttributeValueResolver that resolves SCIM attribute values to/from Date valued Entry instances.
static AttributeValueResolver<Entry<String>> STRINGS_RESOLVER
          The AttributeValueResolver that resolves SCIM attribute values to/from String valued Entry instances.
 
Constructor Summary
Entry(T value, String type)
          Constructs an entry instance with the specified information.
Entry(T value, String type, boolean primary)
          Constructs an entry instance with the specified information.
Entry(T value, String type, boolean primary, String display)
          Constructs an entry instance with the specified information.
 
Method Summary
 boolean equals(Object o)
          
 String getDisplay()
          Retrieves the human readable name, primarily used for display purposes where the value is an opaque or complex type such as an id.
 String getType()
          Retrieves the type of attribute for this instance, usually used to label the preferred function of the given resource.
 T getValue()
          Retrieves the primary value of this attribute.
 int hashCode()
          
 boolean isPrimary()
          Whether this instance of the multi-valued Attribute is the primary or preferred value of for this attribute.
 void setDisplay(String display)
          Sets the human readable name, primarily used for display purposes where the value is an opaque or complex type such as an id.
 void setPrimary(boolean primary)
          Sets whether this instance of the multi-valued Attribute is the primary or preferred value of for this attribute.
 void setType(String type)
          Sets the type of attribute for this instance, usually used to label the preferred function of the given resource.
 void setValue(T value)
          Sets the primary value of this attribute.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

STRINGS_RESOLVER

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


BOOLEANS_RESOLVER

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


BINARIES_RESOLVER

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


DATES_RESOLVER

public static final AttributeValueResolver<Entry<Date>> DATES_RESOLVER
The AttributeValueResolver that resolves SCIM attribute values to/from Date valued Entry instances.

Constructor Detail

Entry

public Entry(T value,
             String type)
Constructs an entry instance with the specified information.

Parameters:
value - The primary value of this attribute.
type - The type of attribute for this instance, usually used to label the preferred function of the given resource.

Entry

public Entry(T value,
             String type,
             boolean primary)
Constructs an entry instance with the specified information.

Parameters:
value - The primary value of this attribute.
type - The type of attribute for this instance, usually used to label the preferred function of the given resource.
primary - A Boolean value indicating whether this instance of the multi-valued Attribute is the primary or preferred value of for this attribute.

Entry

public Entry(T value,
             String type,
             boolean primary,
             String display)
Constructs an entry instance with the specified information.

Parameters:
value - The primary value of this attribute.
type - The type of attribute for this instance, usually used to label the preferred function of the given resource.
primary - A Boolean value indicating whether this instance of the multi-valued Attribute is the primary or preferred value of for this attribute.
display - A human readable name, primarily used for display purposes where the value is an opaque or complex type such as an id.
Method Detail

isPrimary

public boolean isPrimary()
Whether this instance of the multi-valued Attribute is the primary or preferred value of for this attribute.

Returns:
true if this instance of the multi-valued Attribute is the primary or preferred value of for this attribute or false otherwise

setPrimary

public void setPrimary(boolean primary)
Sets whether this instance of the multi-valued Attribute is the primary or preferred value of for this attribute.

Parameters:
primary - true if this instance of the multi-valued Attribute is the primary or preferred value of for this attribute or false otherwise.

getType

public String getType()
Retrieves the type of attribute for this instance, usually used to label the preferred function of the given resource.

Returns:
The type of attribute for this instance, usually used to label the preferred function of the given resource.

setType

public void setType(String type)
Sets the type of attribute for this instance, usually used to label the preferred function of the given resource.

Parameters:
type - The type of attribute for this instance, usually used to label the preferred function of the given resource.

getValue

public T getValue()
Retrieves the primary value of this attribute.

Returns:
The primary value of this attribute.

setValue

public void setValue(T value)
Sets the primary value of this attribute.

Parameters:
value - The primary value of this attribute.

getDisplay

public String getDisplay()
Retrieves the human readable name, primarily used for display purposes where the value is an opaque or complex type such as an id.

Returns:
The human readable name.

setDisplay

public void setDisplay(String display)
Sets the human readable name, primarily used for display purposes where the value is an opaque or complex type such as an id.

Parameters:
display - The human readable name.

equals

public boolean equals(Object o)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2011-2012 UnboundID. All Rights Reserved.