public class SimpleElement extends Object
SimpleElement is the only node type for
simplified DOM model. Note that all CDATA values are stored with
reserved any characters '>' '<' converted to > and <
respectively.| Constructor and Description |
|---|
SimpleElement(String tagName) |
| Modifier and Type | Method and Description |
|---|---|
void |
addChildElement(SimpleElement element) |
String |
getAttribute(String name) |
Set<String> |
getAttributeNames() |
SimpleElement |
getChildByFirstTag(String tag) |
ArrayList<SimpleElement> |
getChildElements() |
String |
getTagName() |
String |
getText() |
void |
setAttribute(String name,
String value) |
void |
setTagName(String tagName) |
void |
setText(String text) |
String |
toFileString() |
String |
toFileString(int indent) |
String |
toString() |
String |
toString(int indent,
boolean forFile) |
public SimpleElement(String tagName)
public String getTagName()
public void setTagName(String tagName)
public String getText()
public void setText(String text)
public void addChildElement(SimpleElement element)
public ArrayList<SimpleElement> getChildElements()
public SimpleElement getChildByFirstTag(String tag)
public String toString(int indent, boolean forFile)
public String toFileString()
public String toFileString(int indent)
Copyright © 2015. All rights reserved.