public class XmlElement extends Element
Constructor and Description |
---|
XmlElement(String name)
Instantiates a new xml element.
|
XmlElement(XmlElement original)
Copy constructor.
|
Modifier and Type | Method and Description |
---|---|
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
in class Element
public void setName(String name)
name
- the new nameCopyright © 2006–2018 MyBatis.org. All rights reserved.