public class XmlElement extends Element
| 构造器和说明 |
|---|
XmlElement(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.
|
List<Attribute> |
getAttributes()
Gets the attributes.
|
List<Element> |
getElements()
Gets the elements.
|
String |
getFormattedContent(int indentLevel) |
String |
getName()
Gets the name.
|
void |
setName(String name)
Sets the name.
|
public XmlElement(String name)
name - the namepublic XmlElement(XmlElement original)
original - the originalpublic List<Attribute> getAttributes()
public void addAttribute(Attribute attribute)
attribute - the attributepublic void addElement(Element element)
element - the elementpublic void addElement(int index,
Element element)
index - the indexelement - the elementpublic String getName()
public String getFormattedContent(int indentLevel)
getFormattedContent 在类中 Elementpublic void setName(String name)
name - the new nameCopyright © 2006–2016 MyBatis.org. All rights reserved.