gov.nasa.worldwind.applications.gio.xml
Class Element
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Element
public Element(xmlns ns,
String elementName)
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