public class XmlElement extends Element
| 构造器和说明 |
|---|
XmlElement(java.lang.String name)
Instantiates a new xml element.
|
XmlElement(XmlElement original)
Copy constructor.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addAttribute(Attribute attribute)
Adds the attribute.
|
void |
addElement(Element element)
Adds the element.
|
void |
addElement(int index,
Element element)
Adds the element.
|
java.util.List<Attribute> |
getAttributes()
Gets the attributes.
|
java.util.List<Element> |
getElements()
Gets the elements.
|
java.lang.String |
getFormattedContent(int indentLevel) |
java.lang.String |
getName()
Gets the name.
|
void |
setName(java.lang.String name)
Sets the name.
|
public XmlElement(java.lang.String name)
name - the namepublic XmlElement(XmlElement original)
original - the originalpublic java.util.List<Attribute> getAttributes()
public void addAttribute(Attribute attribute)
attribute - the attributepublic java.util.List<Element> getElements()
public void addElement(Element element)
element - the elementpublic void addElement(int index,
Element element)
index - the indexelement - the elementpublic java.lang.String getName()
public java.lang.String getFormattedContent(int indentLevel)
getFormattedContent 在类中 Elementpublic void setName(java.lang.String name)
name - the new nameCopyright © 2018. All Rights Reserved.