|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectat.woli.xml.XMLDataElement
public class XMLDataElement
XMLDataElement
to store an Element of the XML-File. This class is used by XMLData.
Field Summary | |
---|---|
private ArrayList<XMLDataAttribute> |
elementAttributes
ArrayList of all attributes of the Element |
private String |
elementName
Name of the XMLDataElement |
private Object |
elementValue
Value of the XMLDataElement |
Constructor Summary | |
---|---|
XMLDataElement()
Standard constructor all variables are initialized with 0 |
|
XMLDataElement(String elementName,
Object elementValue)
|
Method Summary | |
---|---|
void |
addAttribute(String attributeName,
String attributeValue)
Add a new attribute for the elment. |
XMLDataAttribute |
getAttributeByIndex(int index)
Returns an attribute at a given index |
ArrayList<XMLDataAttribute> |
getElementAttributes()
Returns an Arraylist with all attributes |
String |
getElementName()
Returns the name of the element |
Object |
getElementValue()
Returns the value of the element |
int |
getNumberOfAttributes()
Returns the number of attributes, stored in the Arraylist |
void |
removeAttributeByIndex(int index)
Removes an attribute at the given index. |
void |
setElementAttributes(ArrayList<XMLDataAttribute> elementAttributes)
Sets the new ArrayList of the attributes |
void |
setElementName(String elementName)
Sets the name of the element |
void |
setElementValue(Object elementValue)
Sets the value of the element |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private String elementName
private Object elementValue
private ArrayList<XMLDataAttribute> elementAttributes
Constructor Detail |
---|
public XMLDataElement()
public XMLDataElement(String elementName, Object elementValue)
elementName
- The Name of the new elementelementValue
- The Value of the new elementMethod Detail |
---|
public String getElementName()
public void setElementName(String elementName)
elementName
- the new name of the elementpublic Object getElementValue()
public void setElementValue(Object elementValue)
elementValue
- the new value of the elementpublic ArrayList<XMLDataAttribute> getElementAttributes()
public void setElementAttributes(ArrayList<XMLDataAttribute> elementAttributes)
elementAttributes
- the new list of attributes of the elementpublic int getNumberOfAttributes()
public XMLDataAttribute getAttributeByIndex(int index)
public void addAttribute(String attributeName, String attributeValue)
attributeName
- the name of the attributeattributeValue
- the value of the attributepublic void removeAttributeByIndex(int index)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |