com.togethersoft.openapi.rwi.extension
Class RwiPropertyEnumerationAdapter


public class RwiPropertyEnumerationAdapter
implements RwiPropertyEnumeration

Presents default implementation of RwiPropertyEnumeration. This enumeration containes
a number of String values for one property name.

Author:
TogetherSoft
Since: Together 4.0

Inner Class Summary
 private static classRwiPropertyEnumerationAdapter.PropertyAdapter
           

Field Summary
 private EnumerationmyAdaptee
           
 private StringmyPropertyName
           

Constructor Summary
RwiPropertyEnumerationAdapter(String propertyName, Enumeration adaptee)
          Builds new enumeration from existing.

Method Summary
 booleanhasMoreElements()
          Checks are there more RwiElements in enumeration.
 ObjectnextElement()
          Return next RwiProperty as an Object.
 RwiPropertynextRwiProperty()
          Return next RwiProperty as an RwiProperty.

Field Detail

myAdaptee

private Enumeration myAdaptee

myPropertyName

private String myPropertyName
Constructor Detail

RwiPropertyEnumerationAdapter

public RwiPropertyEnumerationAdapter(String propertyName, Enumeration adaptee)
Builds new enumeration from existing.
Parameters:
adaptee Enumeration to be adapted.
propertyName One for all values.
Method Detail

hasMoreElements

public boolean hasMoreElements()
Checks are there more RwiElements in enumeration.

nextElement

public Object nextElement()
Return next RwiProperty as an Object.

nextRwiProperty

public RwiProperty nextRwiProperty()
Return next RwiProperty as an RwiProperty.

Association Links

to Class java.util.Enumeration

to Class java.lang.String