public class Elements extends Object
Constructor and Description |
---|
Elements() |
Modifier and Type | Method and Description |
---|---|
void |
addElement(Element element)
Adds an Element to the collection.
|
Element |
getElement(String name)
Returns an element with the specified name; returns null if nothing available.
|
ElementIterator |
getElementIterator()
Returns an iterator containing all elements in the collection
|
boolean |
hasElement(String name)
Indicates wether an element with the specified name is present in the
collection.
|
public void addElement(Element element)
element
- Element to addpublic Element getElement(String name)
name
- Name of the requested elementpublic ElementIterator getElementIterator()
public boolean hasElement(String name)
name
- Element name