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

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
 void addAll(AttributeChanges changes)
          Add all elements in given AttributeChanges obnjects to the collection
 AttributeChangeOperation get(java.lang.String name)
          Get a single AttributeChangeOperation containing the AttributeValue with the AttributeValue object with the given name.
 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.lang.String toString()
          This method will return a string representation of this object.
 java.util.Collection values()
          Get the collection of AttributeChangeOperation objects
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, 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

addAll

public void addAll(AttributeChanges changes)
Add all elements in given AttributeChanges obnjects to the collection

Parameters:
changes - AttributeChanges object 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

get

public AttributeChangeOperation get(java.lang.String name)
Get a single AttributeChangeOperation containing the AttributeValue with the AttributeValue object with the given name. 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
Returns:
An AttributeChangeOperation containing a single AttributeValue object

toString

public java.lang.String toString()
This method will return a string representation of this object.

Overrides:
toString in class java.lang.Object
Returns:
String object containing textual description of this event.


IBM Tivoli Identity Manager 4.6
© Copyright International Business Machines Corporation 2005. All rights reserved. US Government Users Restricted Rights Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.