com.ibm.itim.common
Class DelimitedMultiValueAttribute

java.lang.Object
  extended by com.ibm.itim.common.DelimitedMultiValueAttribute

public class DelimitedMultiValueAttribute
extends java.lang.Object

Represents a multi-valued attribute in which each value contains a delimited key-value pair. Primarily serves as a conversion helper to store and load the delimited value in a AttributeValue object.


Constructor Summary
DelimitedMultiValueAttribute(AttributeValue attrVal)
          Loads the delimited values contained by the given attribute value.
DelimitedMultiValueAttribute(java.lang.String attributeName)
          Constructs an empty attribute with the given name.
 
Method Summary
 AttributeValue getAttributeValue()
          Constructs an AttributeValue object containing all of the values represented by this attribute.
 AttributeValue getAttributeValue(java.lang.String key)
          Constructs an AttributeValue object containing a single value for the key-value pair identified by the given key.
 java.util.Set<java.lang.String> getKeySet()
          Provides the keys for the delimited values currently stored in this attribute.
 java.lang.String getValue(java.lang.String key)
          Retrieves the value, if any, associated with the given key.
 void setValue(java.lang.String key, java.lang.String value)
          Sets the value for the given key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DelimitedMultiValueAttribute

public DelimitedMultiValueAttribute(AttributeValue attrVal)
Loads the delimited values contained by the given attribute value.

Parameters:
attrVal - attribute value containing delimited values.

DelimitedMultiValueAttribute

public DelimitedMultiValueAttribute(java.lang.String attributeName)
Constructs an empty attribute with the given name.

Parameters:
attributeName - name of the attribute.
Method Detail

setValue

public void setValue(java.lang.String key,
                     java.lang.String value)
Sets the value for the given key.

Parameters:
key -
value - value to set.

getValue

public java.lang.String getValue(java.lang.String key)
Retrieves the value, if any, associated with the given key.

Parameters:
key -
Returns:
value of key, or null.

getKeySet

public java.util.Set<java.lang.String> getKeySet()
Provides the keys for the delimited values currently stored in this attribute.

Returns:
all keys.

getAttributeValue

public AttributeValue getAttributeValue(java.lang.String key)
Constructs an AttributeValue object containing a single value for the key-value pair identified by the given key. The value of the object will be a delimited string containing both the key and the value.

Parameters:
key -
Returns:
attribute value representing the key-value pair.

getAttributeValue

public AttributeValue getAttributeValue()
Constructs an AttributeValue object containing all of the values represented by this attribute. Each value will be a delimited string containing a key-value pair.

Returns:
attribute value containing all values, or null if this attribute does not contain any values.


IBM Security Identity Manager 6.0.0
© Copyright International Business Machines Corporation 2007, 2012. All rights reserved. US Government Users Restricited Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.