NASA World Wind

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

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.ClassificationSchemeParser
All Implemented Interfaces:
ClassificationScheme, Identifiable, RegistryObject, Iterable<ClassificationNode>

public class ClassificationSchemeParser
extends RegistryObjectParser
implements ClassificationScheme


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
ClassificationSchemeParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addClassificationNode(ClassificationNode node)
           
 void addClassificationNode(int index, ClassificationNode node)
           
 void addClassificationNodes(Collection<? extends ClassificationNode> c)
           
 void clearClassificationNodes()
           
protected  void doStartElement(String name, Attributes attributes)
           
 ClassificationNode getClassificationNode(int index)
           
 int getClassificationNodeCount()
           
 int getIndex(ClassificationNode node)
           
 String getNodeType()
           
 boolean isInternal()
           
 Iterator<ClassificationNode> iterator()
           
 void removeClassificationNode(int index)
           
 void setClassificationNode(int index, ClassificationNode node)
           
 void setInternal(boolean internal)
           
 void setNodeType(String nodeType)
           
 
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

ClassificationSchemeParser

public ClassificationSchemeParser(String elementName,
                                  Attributes attributes)
Method Detail

addClassificationNode

public void addClassificationNode(ClassificationNode node)
Specified by:
addClassificationNode in interface ClassificationScheme

addClassificationNode

public void addClassificationNode(int index,
                                  ClassificationNode node)
Specified by:
addClassificationNode in interface ClassificationScheme

addClassificationNodes

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

clearClassificationNodes

public void clearClassificationNodes()
Specified by:
clearClassificationNodes in interface ClassificationScheme

doStartElement

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

getClassificationNode

public ClassificationNode getClassificationNode(int index)
Specified by:
getClassificationNode in interface ClassificationScheme

getClassificationNodeCount

public int getClassificationNodeCount()
Specified by:
getClassificationNodeCount in interface ClassificationScheme

getIndex

public int getIndex(ClassificationNode node)
Specified by:
getIndex in interface ClassificationScheme

getNodeType

public String getNodeType()
Specified by:
getNodeType in interface ClassificationScheme

isInternal

public boolean isInternal()
Specified by:
isInternal in interface ClassificationScheme

iterator

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

removeClassificationNode

public void removeClassificationNode(int index)
Specified by:
removeClassificationNode in interface ClassificationScheme

setClassificationNode

public void setClassificationNode(int index,
                                  ClassificationNode node)
Specified by:
setClassificationNode in interface ClassificationScheme

setInternal

public void setInternal(boolean internal)
Specified by:
setInternal in interface ClassificationScheme

setNodeType

public void setNodeType(String nodeType)
Specified by:
setNodeType in interface ClassificationScheme

NASA World Wind