NASA World Wind

gov.nasa.worldwind.applications.gio.ebrim
Class ClassificationNodeParser

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.xml.ElementParser
      extended by gov.nasa.worldwind.applications.gio.ebrim.IdentifiableParser
          extended by gov.nasa.worldwind.applications.gio.ebrim.RegistryObjectParser
              extended by gov.nasa.worldwind.applications.gio.ebrim.ClassificationNodeParser
All Implemented Interfaces:
ClassificationNode, Identifiable, RegistryObject, Iterable<ClassificationNode>

public class ClassificationNodeParser
extends RegistryObjectParser
implements ClassificationNode


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
ClassificationNodeParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addChild(ClassificationNode child)
           
 void addChild(int index, ClassificationNode child)
           
 void addChildren(Collection<? extends ClassificationNode> c)
           
 void clearChildren()
           
protected  void doStartElement(String name, Attributes attributes)
           
 ClassificationNode getChild(int index)
           
 int getChildCount()
           
 String getCode()
           
 int getIndex(ClassificationNode child)
           
 String getParent()
           
 String getPath()
           
 Iterator<ClassificationNode> iterator()
           
 void removeChild(int index)
           
 void setChild(int index, ClassificationNode child)
           
 void setCode(String code)
           
 void setParent(String parent)
           
 void setPath(String path)
           
 
Methods inherited from class gov.nasa.worldwind.applications.gio.ebrim.RegistryObjectParser
addClassification, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifier, addExternalIdentifiers, clearClassifications, clearExternalIdentifiers, getClassification, getClassificationCount, getClassificationIterator, getDescription, getExternalIdentifier, getExternalIdentifierCount, getExternalIdentifierIterator, getIndex, getIndex, getLid, getName, getObjectType, getStatus, getVersionInfo, removeClassification, removeExternalIdentifier, setClassification, setDescription, setExternalIdentifier, setLid, setName, setObjectType, setStatus, setVersionInfo
 
Methods inherited from class gov.nasa.worldwind.applications.gio.ebrim.IdentifiableParser
addSlot, addSlot, addSlots, clearSlots, getHome, getId, getIndex, getSlot, getSlotCount, getSlotIterator, removeSlot, setHome, setId, setSlot
 
Methods inherited from class gov.nasa.worldwind.applications.gio.xml.ElementParser
characters, doCharacters, doEndElement, endElement, getCharacters, getCurrentElement, getElementName, setCurrentElement, startElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.applications.gio.ebrim.RegistryObject
addClassification, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifier, addExternalIdentifiers, clearClassifications, clearExternalIdentifiers, getClassification, getClassificationCount, getClassificationIterator, getDescription, getExternalIdentifier, getExternalIdentifierCount, getExternalIdentifierIterator, getIndex, getIndex, getLid, getName, getObjectType, getStatus, getVersionInfo, removeClassification, removeExternalIdentifier, setClassification, setDescription, setExternalIdentifier, setLid, setName, setObjectType, setStatus, setVersionInfo
 
Methods inherited from interface gov.nasa.worldwind.applications.gio.ebrim.Identifiable
addSlot, addSlot, addSlots, clearSlots, getHome, getId, getIndex, getSlot, getSlotCount, getSlotIterator, removeSlot, setHome, setId, setSlot
 

Field Detail

ELEMENT_NAME

public static final String ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

ClassificationNodeParser

public ClassificationNodeParser(String elementName,
                                Attributes attributes)
Method Detail

addChild

public void addChild(ClassificationNode child)
Specified by:
addChild in interface ClassificationNode

addChild

public void addChild(int index,
                     ClassificationNode child)
Specified by:
addChild in interface ClassificationNode

addChildren

public void addChildren(Collection<? extends ClassificationNode> c)
Specified by:
addChildren in interface ClassificationNode

clearChildren

public void clearChildren()
Specified by:
clearChildren in interface ClassificationNode

doStartElement

protected void doStartElement(String name,
                              Attributes attributes)
                       throws Exception
Overrides:
doStartElement in class RegistryObjectParser
Throws:
Exception

getChild

public ClassificationNode getChild(int index)
Specified by:
getChild in interface ClassificationNode

getChildCount

public int getChildCount()
Specified by:
getChildCount in interface ClassificationNode

getCode

public String getCode()
Specified by:
getCode in interface ClassificationNode

getIndex

public int getIndex(ClassificationNode child)
Specified by:
getIndex in interface ClassificationNode

getParent

public String getParent()
Specified by:
getParent in interface ClassificationNode

getPath

public String getPath()
Specified by:
getPath in interface ClassificationNode

iterator

public Iterator<ClassificationNode> iterator()
Specified by:
iterator in interface Iterable<ClassificationNode>

removeChild

public void removeChild(int index)
Specified by:
removeChild in interface ClassificationNode

setChild

public void setChild(int index,
                     ClassificationNode child)
Specified by:
setChild in interface ClassificationNode

setCode

public void setCode(String code)
Specified by:
setCode in interface ClassificationNode

setParent

public void setParent(String parent)
Specified by:
setParent in interface ClassificationNode

setPath

public void setPath(String path)
Specified by:
setPath in interface ClassificationNode

NASA World Wind