public class Element
extends Object
Constructor and Description |
---|
Element(Element parentElement,
String name) |
Element(Element parentElement,
String name,
String text) |
Element(String name) |
Element(String name,
boolean addHeader) |
Element(String name,
String text) |
Element(String name,
String text,
boolean addHeader) |
Modifier and Type | Method and Description |
---|---|
void |
addAttribute(String name,
String value) |
Element |
addElement(String name) |
Element |
addElement(String name,
boolean text) |
Element |
addElement(String name,
double text) |
Element |
addElement(String name,
float text) |
Element |
addElement(String name,
int text) |
Element |
addElement(String name,
long text) |
Element |
addElement(String name,
Object text) |
Element |
addElement(String name,
short text) |
Element |
addElement(String name,
String text) |
String |
getName() |
Element |
getParentElement() |
String |
getText() |
boolean |
isRootElement() |
String |
toXMLString() |
public Element(Element parentElement, String name)
public Element(Element parentElement, String name, String text)
public Element(String name)
public Element(String name, boolean addHeader)
public Element(String name, String text)
public Element(String name, String text, boolean addHeader)
public void addAttribute(String name, String value)
public Element addElement(String name)
public Element addElement(String name, boolean text)
public Element addElement(String name, double text)
public Element addElement(String name, float text)
public Element addElement(String name, int text)
public Element addElement(String name, long text)
public Element addElement(String name, Object text)
public Element addElement(String name, short text)
public Element addElement(String name, String text)
public String getName()
public Element getParentElement()
public String getText()
public boolean isRootElement()
public String toXMLString()