org.apache.ibatis.abator.api.dom.xml
Class XmlElement

java.lang.Object
  extended by org.apache.ibatis.abator.api.dom.xml.Element
      extended by org.apache.ibatis.abator.api.dom.xml.XmlElement

public class XmlElement
extends Element

Author:
Jeff Butler

Constructor Summary
XmlElement(java.lang.String name)
           
 
Method Summary
 void addAttribute(Attribute attribute)
           
 void addComment()
          Adds a suitable comment to warn users that the element was generated, and when it was generated.
 void addElement(Element element)
           
 java.util.List getAttributes()
           
 java.util.List getElements()
           
 java.lang.String getFormattedContent(int indentLevel)
           
 java.lang.String getName()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlElement

public XmlElement(java.lang.String name)
Method Detail

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