NASA World Wind

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

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
All Implemented Interfaces:
Identifiable, RegistryObject
Direct Known Subclasses:
AssociationParser, ClassificationNodeParser, ClassificationParser, ClassificationSchemeParser, ExternalIdentifierParser, ExternalLinkParser, ExtrinsicObjectParser, OrganizationParser, PersonParser, ServiceBindingParser, ServiceParser, SpecificationLinkParser

public class RegistryObjectParser
extends IdentifiableParser
implements RegistryObject


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
RegistryObjectParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addClassification(Classification classification)
           
 void addClassification(int index, Classification classification)
           
 void addClassifications(Collection<? extends Classification> c)
           
 void addExternalIdentifier(ExternalIdentifier externalIdentifier)
           
 void addExternalIdentifier(int index, ExternalIdentifier externalIdentifier)
           
 void addExternalIdentifiers(Collection<? extends ExternalIdentifier> c)
           
 void clearClassifications()
           
 void clearExternalIdentifiers()
           
protected  void doStartElement(String name, Attributes attributes)
           
 Classification getClassification(int index)
           
 int getClassificationCount()
           
 Iterator<Classification> getClassificationIterator()
           
 Description getDescription()
           
 ExternalIdentifier getExternalIdentifier(int index)
           
 int getExternalIdentifierCount()
           
 Iterator<ExternalIdentifier> getExternalIdentifierIterator()
           
 int getIndex(Classification classification)
           
 int getIndex(ExternalIdentifier externalIdentifier)
           
 String getLid()
           
 Name getName()
           
 String getObjectType()
           
 String getStatus()
           
 VersionInfo getVersionInfo()
           
 void removeClassification(int index)
           
 void removeExternalIdentifier(int index)
           
 void setClassification(int index, Classification classification)
           
 void setDescription(Description description)
           
 void setExternalIdentifier(int index, ExternalIdentifier externalIdentifier)
           
 void setLid(String lid)
           
 void setName(Name name)
           
 void setObjectType(String objectType)
           
 void setStatus(String status)
           
 void setVersionInfo(VersionInfo versionInfo)
           
 
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.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

RegistryObjectParser

public RegistryObjectParser(String elementName,
                            Attributes attributes)
Method Detail

addClassification

public void addClassification(Classification classification)
Specified by:
addClassification in interface RegistryObject

addClassification

public void addClassification(int index,
                              Classification classification)
Specified by:
addClassification in interface RegistryObject

addClassifications

public void addClassifications(Collection<? extends Classification> c)
Specified by:
addClassifications in interface RegistryObject

addExternalIdentifier

public void addExternalIdentifier(ExternalIdentifier externalIdentifier)
Specified by:
addExternalIdentifier in interface RegistryObject

addExternalIdentifier

public void addExternalIdentifier(int index,
                                  ExternalIdentifier externalIdentifier)
Specified by:
addExternalIdentifier in interface RegistryObject

addExternalIdentifiers

public void addExternalIdentifiers(Collection<? extends ExternalIdentifier> c)
Specified by:
addExternalIdentifiers in interface RegistryObject

clearClassifications

public void clearClassifications()
Specified by:
clearClassifications in interface RegistryObject

clearExternalIdentifiers

public void clearExternalIdentifiers()
Specified by:
clearExternalIdentifiers in interface RegistryObject

doStartElement

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

getClassification

public Classification getClassification(int index)
Specified by:
getClassification in interface RegistryObject

getClassificationCount

public int getClassificationCount()
Specified by:
getClassificationCount in interface RegistryObject

getClassificationIterator

public Iterator<Classification> getClassificationIterator()
Specified by:
getClassificationIterator in interface RegistryObject

getDescription

public Description getDescription()
Specified by:
getDescription in interface RegistryObject

getExternalIdentifier

public ExternalIdentifier getExternalIdentifier(int index)
Specified by:
getExternalIdentifier in interface RegistryObject

getExternalIdentifierCount

public int getExternalIdentifierCount()
Specified by:
getExternalIdentifierCount in interface RegistryObject

getExternalIdentifierIterator

public Iterator<ExternalIdentifier> getExternalIdentifierIterator()
Specified by:
getExternalIdentifierIterator in interface RegistryObject

getIndex

public int getIndex(Classification classification)
Specified by:
getIndex in interface RegistryObject

getIndex

public int getIndex(ExternalIdentifier externalIdentifier)
Specified by:
getIndex in interface RegistryObject

getLid

public String getLid()
Specified by:
getLid in interface RegistryObject

getName

public Name getName()
Specified by:
getName in interface RegistryObject

getObjectType

public String getObjectType()
Specified by:
getObjectType in interface RegistryObject

getStatus

public String getStatus()
Specified by:
getStatus in interface RegistryObject

getVersionInfo

public VersionInfo getVersionInfo()
Specified by:
getVersionInfo in interface RegistryObject

removeClassification

public void removeClassification(int index)
Specified by:
removeClassification in interface RegistryObject

removeExternalIdentifier

public void removeExternalIdentifier(int index)
Specified by:
removeExternalIdentifier in interface RegistryObject

setClassification

public void setClassification(int index,
                              Classification classification)
Specified by:
setClassification in interface RegistryObject

setDescription

public void setDescription(Description description)
Specified by:
setDescription in interface RegistryObject

setExternalIdentifier

public void setExternalIdentifier(int index,
                                  ExternalIdentifier externalIdentifier)
Specified by:
setExternalIdentifier in interface RegistryObject

setLid

public void setLid(String lid)
Specified by:
setLid in interface RegistryObject

setName

public void setName(Name name)
Specified by:
setName in interface RegistryObject

setObjectType

public void setObjectType(String objectType)
Specified by:
setObjectType in interface RegistryObject

setStatus

public void setStatus(String status)
Specified by:
setStatus in interface RegistryObject

setVersionInfo

public void setVersionInfo(VersionInfo versionInfo)
Specified by:
setVersionInfo in interface RegistryObject

NASA World Wind