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