NASA World Wind

gov.nasa.worldwind.applications.gio.gidb
Class ServerListParser

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.xml.ElementParser
      extended by gov.nasa.worldwind.applications.gio.gidb.ServerListParser
All Implemented Interfaces:
ServerList, Iterable<Server>

public class ServerListParser
extends ElementParser
implements ServerList


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
ServerListParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addServer(int index, Server server)
           
 void addServer(Server server)
           
 void addServers(Collection<? extends Server> c)
           
 void clearServers()
           
protected  void doStartElement(String name, Attributes attributes)
           
 int getIndex(Server server)
           
 Server getServer(int index)
           
 int getServerCount()
           
 Iterator<Server> iterator()
           
 void removeServer(int index)
           
 void setServer(int index, Server server)
           
 
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

ServerListParser

public ServerListParser(String elementName,
                        Attributes attributes)
Method Detail

addServer

public void addServer(int index,
                      Server server)
Specified by:
addServer in interface ServerList

addServer

public void addServer(Server server)
Specified by:
addServer in interface ServerList

addServers

public void addServers(Collection<? extends Server> c)
Specified by:
addServers in interface ServerList

clearServers

public void clearServers()
Specified by:
clearServers in interface ServerList

doStartElement

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

getIndex

public int getIndex(Server server)
Specified by:
getIndex in interface ServerList

getServer

public Server getServer(int index)
Specified by:
getServer in interface ServerList

getServerCount

public int getServerCount()
Specified by:
getServerCount in interface ServerList

iterator

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

removeServer

public void removeServer(int index)
Specified by:
removeServer in interface ServerList

setServer

public void setServer(int index,
                      Server server)
Specified by:
setServer in interface ServerList

NASA World Wind