org.mybatis.generator.api.dom.xml
Class XmlElement

java.lang.Object
  extended by org.mybatis.generator.api.dom.xml.Element
      extended by org.mybatis.generator.api.dom.xml.XmlElement

public class XmlElement
extends Element

Author:
Jeff Butler

Constructor Summary
XmlElement(String name)
           
XmlElement(XmlElement original)
          Copy constructor.
 
Method Summary
 void addAttribute(Attribute attribute)
           
 void addElement(Element element)
           
 void addElement(int index, Element element)
           
 List<Attribute> getAttributes()
           
 List<Element> getElements()
           
 String getFormattedContent(int indentLevel)
           
 String getName()
           
 void setName(String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 -
Method Detail

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.