NASA World Wind

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

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.ServiceParser
All Implemented Interfaces:
Identifiable, RegistryObject, Service

public class ServiceParser
extends RegistryObjectParser
implements Service


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
ServiceParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addServiceBinding(int index, ServiceBinding sb)
           
 void addServiceBinding(ServiceBinding sb)
           
 void addServiceBindings(Collection<? extends ServiceBinding> c)
           
 void clearServiceBindings()
           
protected  void doStartElement(String name, Attributes attributes)
           
 int getIndex(ServiceBinding sb)
           
 ServiceBinding getServiceBinding(int index)
           
 int getServiceBindingCount()
           
 Iterator<ServiceBinding> getServiceBindingIterator()
           
 void removeServiceBinding(int index)
           
 void setServiceBinding(int index, ServiceBinding sb)
           
 
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

ServiceParser

public ServiceParser(String elementName,
                     Attributes attributes)
Method Detail

addServiceBinding

public void addServiceBinding(int index,
                              ServiceBinding sb)
Specified by:
addServiceBinding in interface Service

addServiceBinding

public void addServiceBinding(ServiceBinding sb)
Specified by:
addServiceBinding in interface Service

addServiceBindings

public void addServiceBindings(Collection<? extends ServiceBinding> c)
Specified by:
addServiceBindings in interface Service

clearServiceBindings

public void clearServiceBindings()
Specified by:
clearServiceBindings in interface Service

doStartElement

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

getIndex

public int getIndex(ServiceBinding sb)
Specified by:
getIndex in interface Service

getServiceBinding

public ServiceBinding getServiceBinding(int index)
Specified by:
getServiceBinding in interface Service

getServiceBindingCount

public int getServiceBindingCount()
Specified by:
getServiceBindingCount in interface Service

getServiceBindingIterator

public Iterator<ServiceBinding> getServiceBindingIterator()
Specified by:
getServiceBindingIterator in interface Service

removeServiceBinding

public void removeServiceBinding(int index)
Specified by:
removeServiceBinding in interface Service

setServiceBinding

public void setServiceBinding(int index,
                              ServiceBinding sb)
Specified by:
setServiceBinding in interface Service

NASA World Wind