NASA World Wind

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

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.xml.ElementParser
      extended by gov.nasa.worldwind.applications.gio.ebrim.IdentifiableParser
All Implemented Interfaces:
Identifiable
Direct Known Subclasses:
RegistryObjectParser

public class IdentifiableParser
extends ElementParser
implements Identifiable


Field Summary
static java.lang.String ELEMENT_NAME
           
 
Constructor Summary
IdentifiableParser(java.lang.String elementName, org.xml.sax.Attributes attributes)
           
 
Method Summary
 void addSlot(int index, Slot s)
           
 void addSlot(Slot s)
           
 void addSlots(java.util.Collection<? extends Slot> c)
           
 void clearSlots()
           
protected  void doStartElement(java.lang.String name, org.xml.sax.Attributes attributes)
           
 java.lang.String getHome()
           
 java.lang.String getId()
           
 int getIndex(Slot s)
           
 Slot getSlot(int index)
           
 int getSlotCount()
           
 java.util.Iterator<Slot> getSlotIterator()
           
 void removeSlot(int index)
           
 void setHome(java.lang.String home)
           
 void setId(java.lang.String id)
           
 void setSlot(int index, Slot s)
           
 
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
 

Field Detail

ELEMENT_NAME

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

IdentifiableParser

public IdentifiableParser(java.lang.String elementName,
                          org.xml.sax.Attributes attributes)
Method Detail

addSlot

public void addSlot(int index,
                    Slot s)
Specified by:
addSlot in interface Identifiable

addSlot

public void addSlot(Slot s)
Specified by:
addSlot in interface Identifiable

addSlots

public void addSlots(java.util.Collection<? extends Slot> c)
Specified by:
addSlots in interface Identifiable

clearSlots

public void clearSlots()
Specified by:
clearSlots in interface Identifiable

doStartElement

protected void doStartElement(java.lang.String name,
                              org.xml.sax.Attributes attributes)
                       throws java.lang.Exception
Overrides:
doStartElement in class ElementParser
Throws:
java.lang.Exception

getHome

public java.lang.String getHome()
Specified by:
getHome in interface Identifiable

getId

public java.lang.String getId()
Specified by:
getId in interface Identifiable

getIndex

public int getIndex(Slot s)
Specified by:
getIndex in interface Identifiable

getSlot

public Slot getSlot(int index)
Specified by:
getSlot in interface Identifiable

getSlotCount

public int getSlotCount()
Specified by:
getSlotCount in interface Identifiable

getSlotIterator

public java.util.Iterator<Slot> getSlotIterator()
Specified by:
getSlotIterator in interface Identifiable

removeSlot

public void removeSlot(int index)
Specified by:
removeSlot in interface Identifiable

setHome

public void setHome(java.lang.String home)
Specified by:
setHome in interface Identifiable

setId

public void setId(java.lang.String id)
Specified by:
setId in interface Identifiable

setSlot

public void setSlot(int index,
                    Slot s)
Specified by:
setSlot in interface Identifiable

NASA World Wind