gov.nasa.worldwind.applications.gio.gidb
Class ServerListParser
java.lang.Object
gov.nasa.worldwind.applications.gio.xml.ElementParser
gov.nasa.worldwind.applications.gio.gidb.ServerListParser
- All Implemented Interfaces:
- ServerList, Iterable<Server>
public class ServerListParser
- extends ElementParser
- implements ServerList
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT_NAME
public static final String ELEMENT_NAME
- See Also:
- Constant Field Values
ServerListParser
public ServerListParser(String elementName,
Attributes attributes)
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