com.mulesoft.utils.xml
Class Element

java.lang.Object
  extended by com.mulesoft.utils.xml.Node
      extended by com.mulesoft.utils.xml.Element

public class Element
extends Node


Field Summary
 
Fields inherited from class com.mulesoft.utils.xml.Node
local, ns
 
Constructor Summary
Element(String local)
           
Element(String local, Element parent)
           
Element(String ns, String local)
           
Element(String ns, String local, Element parent)
           
 
Method Summary
 Element addAttr(Attr attr)
           
 Element addAttr(String local, String value)
           
 Element addAttr(String ns, String local, String value)
           
 Element addChild(Element child)
           
 Element addChildren(Element... child)
           
 Element addChildren(List<Element> theChildren)
           
 Element addNsDef(String ns)
           
 Element addNsDef(String prefix, String ns)
           
 String getAttrValue(String name)
           
 Iterable<Element> getChildren()
           
 void output(Formatter formatter)
           
 void setValue(String value)
           
 
Methods inherited from class com.mulesoft.utils.xml.Node
getLocal, getNs, putName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Element

public Element(String ns,
               String local)

Element

public Element(String local)

Element

public Element(String ns,
               String local,
               Element parent)

Element

public Element(String local,
               Element parent)
Method Detail

addChild

public Element addChild(Element child)

addChildren

public Element addChildren(List<Element> theChildren)

addChildren

public Element addChildren(Element... child)

addAttr

public Element addAttr(Attr attr)

addAttr

public Element addAttr(String local,
                       String value)

addAttr

public Element addAttr(String ns,
                       String local,
                       String value)

addNsDef

public Element addNsDef(String ns)

addNsDef

public Element addNsDef(String prefix,
                        String ns)

setValue

public void setValue(String value)

output

public void output(Formatter formatter)
            throws IOException
Specified by:
output in class Node
Throws:
IOException

getAttrValue

public String getAttrValue(String name)

getChildren

public Iterable<Element> getChildren()


Copyright © 2012. All Rights Reserved.