NASA World Wind

gov.nasa.worldwind.applications.gio.xml
Class Element

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.xml.Element
Direct Known Subclasses:
ComparisonOperator, Constraint, Envelope, Filter, LogicalOperator, LowerBoundary, Query, Request, SpatialOperator, TextElement, UpperBoundary

public class Element
extends Object


Constructor Summary
Element(xmlns ns, String elementName)
           
 
Method Summary
 Element addElement(Element e)
           
 Element addElement(int index, Element e)
           
 void addElements(Collection<? extends Element> c)
           
 void clearAttributes()
           
 void clearElements()
           
 String getAttribute(String name)
           
 Element getElement(int index)
           
 int getElementCount()
           
 int getIndex(Element e)
           
 String getName()
           
 xmlns getNs()
           
 boolean hasContent()
           
 void removeAttribute(String name)
           
 void removeElement(int index)
           
 void setAttribute(String name, String value)
           
 void setElement(int index, Element e)
           
 String toXml()
           
protected  void write(Writer out)
           
protected  void writeAttributes(Writer out)
           
protected  void writeBeginElement(Writer out)
           
protected  void writeElementContent(Writer out)
           
protected  void writeEndElement(Writer out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Element

public Element(xmlns ns,
               String elementName)
Method Detail

addElement

public Element addElement(Element e)
                   throws Exception
Throws:
Exception

addElement

public Element addElement(int index,
                          Element e)
                   throws Exception
Throws:
Exception

addElements

public void addElements(Collection<? extends Element> c)
                 throws Exception
Throws:
Exception

clearAttributes

public void clearAttributes()

clearElements

public void clearElements()
                   throws Exception
Throws:
Exception

getAttribute

public String getAttribute(String name)

getElement

public Element getElement(int index)

getElementCount

public int getElementCount()

getIndex

public int getIndex(Element e)

getName

public String getName()

getNs

public xmlns getNs()

hasContent

public boolean hasContent()

removeAttribute

public void removeAttribute(String name)

removeElement

public void removeElement(int index)
                   throws Exception
Throws:
Exception

setAttribute

public void setAttribute(String name,
                         String value)

setElement

public void setElement(int index,
                       Element e)
                throws Exception
Throws:
Exception

toXml

public String toXml()

write

protected void write(Writer out)
              throws IOException
Throws:
IOException

writeAttributes

protected void writeAttributes(Writer out)
                        throws IOException
Throws:
IOException

writeBeginElement

protected void writeBeginElement(Writer out)
                          throws IOException
Throws:
IOException

writeElementContent

protected void writeElementContent(Writer out)
                            throws IOException
Throws:
IOException

writeEndElement

protected void writeEndElement(Writer out)
                        throws IOException
Throws:
IOException

NASA World Wind