public class SimpleElement
extends java.lang.Object
implements java.io.Serializable
SimpleElement
is the only node type for
simplified DOM model.Modifier and Type | Field and Description |
---|---|
protected java.util.HashMap<java.lang.String,java.lang.String> |
attributes |
protected java.util.LinkedList<SimpleElement> |
childElements |
protected java.lang.String |
tagName |
protected java.lang.String |
text |
Constructor and Description |
---|
SimpleElement(java.lang.String tagName) |
Modifier and Type | Method and Description |
---|---|
void |
addChildElement(SimpleElement element) |
void |
combineLists(java.util.HashMap<java.lang.String,java.lang.String> element) |
java.lang.String |
getAttribute(java.lang.String name) |
java.util.HashMap<java.lang.String,java.lang.String> |
getAttributes() |
java.lang.Object[] |
getChildByTagName(java.lang.String tagName) |
java.lang.Object[] |
getChildElements() |
java.util.LinkedList<SimpleElement> |
getChildElementsAsList() |
java.lang.String |
getTagName() |
java.lang.String |
getText() |
boolean |
isEmpty() |
void |
saveToFile(java.lang.String pFileName) |
void |
setAttribute(java.lang.String name,
java.lang.String value) |
void |
setTagName(java.lang.String tagName) |
void |
setText(java.lang.String text) |
java.lang.String |
toString() |
protected java.lang.String tagName
protected java.lang.String text
protected java.util.HashMap<java.lang.String,java.lang.String> attributes
protected java.util.LinkedList<SimpleElement> childElements
public java.lang.String getTagName()
public void setTagName(java.lang.String tagName)
public java.lang.String getText()
public void setText(java.lang.String text)
public java.lang.String getAttribute(java.lang.String name)
public java.util.HashMap<java.lang.String,java.lang.String> getAttributes()
public void setAttribute(java.lang.String name, java.lang.String value)
public void addChildElement(SimpleElement element)
public java.lang.Object[] getChildElements()
public java.util.LinkedList<SimpleElement> getChildElementsAsList()
public boolean isEmpty()
public void combineLists(java.util.HashMap<java.lang.String,java.lang.String> element)
public java.lang.Object[] getChildByTagName(java.lang.String tagName)
public java.lang.String toString()
toString
in class java.lang.Object
public void saveToFile(java.lang.String pFileName)