org.eclipse.higgins.util.idas.cp
Class AttributeValuesPDPIter

java.lang.Object
  extended byorg.eclipse.higgins.util.idas.cp.AttributeValuesPDPIter
All Implemented Interfaces:
Iterator

public class AttributeValuesPDPIter
extends Object
implements Iterator

Helper function for policy based Higgins Context providers. This implementation allows for policy at critical points. After creation this object always transforms results as the accessor functions are called. The direction of the mapping is based on if object was created with provider or consumer values. You cannot use the object to access values untransformed!

Author:
dbuss@novell.com

Constructor Summary
AttributeValuesPDPIter(URI providerAttrID, URI consumerAttrID, IAttributePDPs attributePDP, IAttributePDPs metaAttrPDP, Iterator iterator, boolean isProviderData)
          Create a new ImmutableIterator
 
Method Summary
 boolean hasNext()
          Standard hasNext method
 Object next()
          Standard next method TODO: implement Complex Values
 void remove()
          Makes sure that no one can remove any elements from the collection
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeValuesPDPIter

public AttributeValuesPDPIter(URI providerAttrID,
                              URI consumerAttrID,
                              IAttributePDPs attributePDP,
                              IAttributePDPs metaAttrPDP,
                              Iterator iterator,
                              boolean isProviderData)
Create a new ImmutableIterator

Method Detail

hasNext

public boolean hasNext()
Standard hasNext method

Specified by:
hasNext in interface Iterator

next

public Object next()
            throws NoSuchElementException
Standard next method TODO: implement Complex Values

Specified by:
next in interface Iterator
Throws:
NoSuchElementException

remove

public void remove()
            throws UnsupportedOperationException
Makes sure that no one can remove any elements from the collection

Specified by:
remove in interface Iterator
Throws:
UnsupportedOperationException