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, java.lang.Iterable<Server>
public class ServerListParser
- extends ElementParser
- implements ServerList
|
Constructor Summary |
ServerListParser(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT_NAME
public static final java.lang.String ELEMENT_NAME
- See Also:
- Constant Field Values
ServerListParser
public ServerListParser(java.lang.String elementName,
org.xml.sax.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(java.util.Collection<? extends Server> c)
- Specified by:
addServers in interface ServerList
clearServers
public void clearServers()
- Specified by:
clearServers in interface ServerList
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
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 java.util.Iterator<Server> iterator()
- Specified by:
iterator in interface java.lang.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