org.mybatis.generator.api.dom.xml
Class XmlElement
java.lang.Object
org.mybatis.generator.api.dom.xml.Element
org.mybatis.generator.api.dom.xml.XmlElement
public class XmlElement
- extends Element
- Author:
- Jeff Butler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlElement
public XmlElement(String name)
XmlElement
public XmlElement(XmlElement original)
- Copy constructor. Not a truly deep copy, but close enough
for most purposes.
- Parameters:
original
-
getAttributes
public List<Attribute> getAttributes()
- Returns:
- Returns the attributes.
addAttribute
public void addAttribute(Attribute attribute)
getElements
public List<Element> getElements()
- Returns:
- Returns the elements.
addElement
public void addElement(Element element)
addElement
public void addElement(int index,
Element element)
getName
public String getName()
- Returns:
- Returns the name.
getFormattedContent
public String getFormattedContent(int indentLevel)
- Specified by:
getFormattedContent
in class Element
setName
public void setName(String name)
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.