|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectkirk.io.sdl.SDLElement
kirk.io.sdl.SDLNormalElement
This class represents the normal element of an SDL document. It has a name and element values.
| Field Summary | |
static String |
IDENTIFIER
The identifier of the normal element type. |
protected ArrayList |
valuelist
The list of values of this element. |
| Fields inherited from class kirk.io.sdl.SDLElement |
name |
| Constructor Summary | |
SDLNormalElement(String name)
Constructs a new normal element with the given name. |
|
| Method Summary | |
void |
addValue(int index,
SDLElement value)
Adds the given value to the list of values (at the specified index). |
void |
addValue(SDLElement value)
Adds the given value to the list of values. |
SDLDataElement |
getDataElement(String name)
Returns the SDLDataElement in this element that has the given
name. |
Iterator |
getDataElements()
Returns the Iterator that iterates over this
SDLNormalElement. |
Iterator |
getDataElements(String name)
Returns the Iterator that iterates over this
SDLNormalElement given the name filter. |
SDLElement |
getElement(String name)
Returns the SDLElement in this element that has the given name. |
Iterator |
getElements()
Returns the Iterator that iterates over this
SDLNormalElement. |
Iterator |
getElements(String name)
Returns the Iterator that iterates over this
SDLNormalElement given the name filter. |
SDLNormalElement |
getNormalElement(String name)
Returns the SDLNormalElement in this element that has the given
name. |
Iterator |
getNormalElements()
Returns the Iterator that iterates over this
SDLNormalElement. |
Iterator |
getNormalElements(String name)
Returns the Iterator that iterates over this
SDLNormalElement given the name filter. |
int |
getNumberOfValues()
Returns how many values there are in the list. |
SDLElement |
getValue(int index)
Returns the element at index. |
SDLElement |
removeValue(int index)
Removes the given value from the list of values (from the specified index). |
SDLElement |
removeValue(SDLElement value)
Removes the given value from the list of values. |
void |
setValue(SDLElement value,
int index)
Sets the given value in the list of values (at the specified index). |
String |
toString(String indent)
Returns a string representation of this SDLNormalElement with the
given indentation. |
| Methods inherited from class kirk.io.sdl.SDLElement |
getAsDataElement, getAsNormalElement, getName, setName |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected ArrayList valuelist
public static final String IDENTIFIER
| Constructor Detail |
public SDLNormalElement(String name)
name - The name of this element.| Method Detail |
public SDLElement getValue(int index)
index.
index - The index of the element to be returned.
index.
public void addValue(int index,
SDLElement value)
value - The value to be added.index - The index to be added on.public void addValue(SDLElement value)
value - The value to be added.
public void setValue(SDLElement value,
int index)
value - The value to be set.index - The index to be set on.public SDLElement removeValue(int index)
index - The index to be removed from.
public SDLElement removeValue(SDLElement value)
value - The element to be removed.
public int getNumberOfValues()
public Iterator getElements()
Iterator that iterates over this
SDLNormalElement.
public Iterator getElements(String name)
Iterator that iterates over this
SDLNormalElement given the name filter.
name - The name to filter upon.public Iterator getNormalElements()
Iterator that iterates over this
SDLNormalElement. It only returns the
SDLNormalElement objects.
public Iterator getNormalElements(String name)
Iterator that iterates over this
SDLNormalElement given the name filter. It only returns the
SDLNormalElement objects.
name - The name to filter upon.public Iterator getDataElements()
Iterator that iterates over this
SDLNormalElement. It only returns the
SDLDataElement objects.
public Iterator getDataElements(String name)
Iterator that iterates over this
SDLNormalElement given the name filter. It only returns the
SDLDataElement objects.
name - The name to filter upon.
public SDLElement getElement(String name)
throws MultipleMatchException,
NoMatchException
SDLElement in this element that has the given name.
name - The name of the element to return.
SDLElement that has the given name.
MultipleMatchException - When more than one element has the given name.
NoMatchException - When no element has the given name.
public SDLNormalElement getNormalElement(String name)
throws MultipleMatchException,
NoMatchException
SDLNormalElement in this element that has the given
name.
name - The name of the element to return.
SDLNormalElement that has the given name.
MultipleMatchException - When more than one element has the given name.
NoMatchException - When no element has the given name.
public SDLDataElement getDataElement(String name)
throws MultipleMatchException,
NoMatchException
SDLDataElement in this element that has the given
name.
name - The name of the element to return.
SDLDataElement that has the given name.
MultipleMatchException - When more than one element has the given name.
NoMatchException - When no element has the given name.public String toString(String indent)
SDLNormalElement with the
given indentation.
toString in class SDLElementindent - The indentation to be used.
SDLNormalElement.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||