java.lang.Objectorg.objectweb.telosys.common.TelosysObject
org.objectweb.telosys.screen.core.ScreenDataElements
A temporary collection of ScreenDataElement instances
Used to store :
. the data elements of a ScreenRequest ( XML "data" section received from the client side ),
. the data elements of a ScreenResponse ( XML "data" section send to the client side )
. a copy of the ScreenContext elements
Constructor Summary | |
ScreenDataElements()
Default constructor |
|
ScreenDataElements(java.util.Collection elements)
Constructor from elements collection |
Method Summary | |
void |
add(ScreenDataElement oElement)
Adds an element in the elements collection |
void |
add(java.lang.String sElementName,
java.lang.Object oBean)
Adds an element in the elements collection |
ScreenDataElement |
get(int index)
Returns the element located at the given index |
ScreenDataElement |
get(java.lang.String sElementName)
Returns the element having the given name (or null if not found) If there's multiple elements with the same name, the first element found is returned. |
java.lang.Object |
getDataElementInstance(java.lang.String sElementName,
java.lang.Class clazz)
Returns the element object having the given name and instance of the given class (or null if not found) If there's multiple elements with the same name, the first element found is returned. |
java.util.Iterator |
iterator()
Returns an iterator for the elements collection |
int |
size()
Returns the size of the elements collection |
java.lang.String |
toString()
|
Methods inherited from class org.objectweb.telosys.common.TelosysObject |
error, error, error, getFlagTrace, info, setFlagTrace, trace, warn |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ScreenDataElements()
public ScreenDataElements(java.util.Collection elements)
elements
- Method Detail |
public void add(ScreenDataElement oElement)
oElement
- public void add(java.lang.String sElementName, java.lang.Object oBean)
sElementName
- oBean
- public int size()
public ScreenDataElement get(int index)
index
-
public ScreenDataElement get(java.lang.String sElementName)
sElementName
-
public java.lang.Object getDataElementInstance(java.lang.String sElementName, java.lang.Class clazz)
sElementName
- clazz
- if null the type of the object is not checked
public java.util.Iterator iterator()
public java.lang.String toString()