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 String ELEMENT_NAME
           
 
Constructor Summary
IdentifiableParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addSlot(int index, Slot s)
           
 void addSlot(Slot s)
           
 void addSlots(Collection<? extends Slot> c)
           
 void clearSlots()
           
protected  void doStartElement(String name, Attributes attributes)
           
 String getHome()
           
 String getId()
           
 int getIndex(Slot s)
           
 Slot getSlot(int index)
           
 int getSlotCount()
           
 Iterator<Slot> getSlotIterator()
           
 void removeSlot(int index)
           
 void setHome(String home)
           
 void setId(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 String ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

IdentifiableParser

public IdentifiableParser(String elementName,
                          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(Collection<? extends Slot> c)
Specified by:
addSlots in interface Identifiable

clearSlots

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

doStartElement

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

getHome

public String getHome()
Specified by:
getHome in interface Identifiable

getId

public 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 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(String home)
Specified by:
setHome in interface Identifiable

setId

public void setId(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