org.apache.ibatis.abator.api.dom.xml
Class XmlElement
java.lang.Object
org.apache.ibatis.abator.api.dom.xml.Element
org.apache.ibatis.abator.api.dom.xml.XmlElement
public class XmlElement
- extends Element
- Author:
- Jeff Butler
Constructor Summary |
XmlElement(java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlElement
public XmlElement(java.lang.String name)
getAttributes
public java.util.List getAttributes()
- Returns:
- Returns the attributes.
addAttribute
public void addAttribute(Attribute attribute)
getElements
public java.util.List getElements()
- Returns:
- Returns the elements.
addElement
public void addElement(Element element)
getName
public java.lang.String getName()
- Returns:
- Returns the name.
addComment
public void addComment()
- Adds a suitable comment to warn users that the element was generated, and
when it was generated.
getFormattedContent
public java.lang.String getFormattedContent(int indentLevel)
- Specified by:
getFormattedContent
in class Element