com.ibm.itim.common
Class AttributeChanges

java.lang.Object
  |
  +--com.ibm.itim.common.AttributeChanges
All Implemented Interfaces:
java.io.Serializable

public class AttributeChanges
extends java.lang.Object
implements java.io.Serializable

Encapsulates a collection of AttributeChangeOperation objects

Author:
AAmies
See Also:
Serialized Form

Constructor Summary
AttributeChanges()
          Creates new AttributeChangeCollection
AttributeChanges(java.util.Collection collection)
          Creates new AttributeChanges with the given AttributeChangeOperation elements.
 
Method Summary
 void add(AttributeChangeOperation element)
          Add a new element to the collection
 AttributeChangeOperation get(java.lang.String name, java.lang.Object value)
          Get a single AttributeChangeOperation containing the AttributeValue with the AttributeValue object with the given name and value.
 AttributeChangeIterator iterator()
          Creates an iterator to iterate over elements in the collection
 int size()
          Returns the number of AttributeChangeOperation objects
 java.util.Collection values()
          Get the collection of AttributeChangeOperation objects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeChanges

public AttributeChanges()
Creates new AttributeChangeCollection

AttributeChanges

public AttributeChanges(java.util.Collection collection)
Creates new AttributeChanges with the given AttributeChangeOperation elements.
Parameters:
collection - collection of AttributeChangeOperation elements
Method Detail

iterator

public AttributeChangeIterator iterator()
Creates an iterator to iterate over elements in the collection
Returns:
An iterator for the collection

add

public void add(AttributeChangeOperation element)
Add a new element to the collection
Parameters:
element - An element to add to the collection

size

public int size()
Returns the number of AttributeChangeOperation objects
Returns:
the number of AttributeChangeOperation objects

values

public java.util.Collection values()
Get the collection of AttributeChangeOperation objects
Returns:
the collection of AttributeChangeOperation objects

get

public AttributeChangeOperation get(java.lang.String name,
                                    java.lang.Object value)
Get a single AttributeChangeOperation containing the AttributeValue with the AttributeValue object with the given name and value. If there are more than one the first one will be returned. It will return null if no such AttributeChangeOperation is found.
Parameters:
name - The name of the AttributeValue object to retrieve
value - The value of the change operation to retreive for
Returns:
An AttributeChangeOperation containing a single AttributeValue object