NASA World Wind

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

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.xml.ElementParser
      extended by gov.nasa.worldwind.applications.gio.ebrim.ValueListParser
All Implemented Interfaces:
ValueList, Iterable<Value>

public class ValueListParser
extends ElementParser
implements ValueList


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
ValueListParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addValue(int index, Value v)
           
 void addValue(Value v)
           
 void addValues(Collection<? extends Value> c)
           
 void clearValues()
           
protected  void doStartElement(String name, Attributes attributes)
           
 int getIndex(Value v)
           
 Value getValue(int index)
           
 int getValueCount()
           
 Iterator<Value> iterator()
           
 void removeValue(int index)
           
 void setValue(int index, Value v)
           
 
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

ValueListParser

public ValueListParser(String elementName,
                       Attributes attributes)
Method Detail

addValue

public void addValue(int index,
                     Value v)
Specified by:
addValue in interface ValueList

addValue

public void addValue(Value v)
Specified by:
addValue in interface ValueList

addValues

public void addValues(Collection<? extends Value> c)
Specified by:
addValues in interface ValueList

clearValues

public void clearValues()
Specified by:
clearValues in interface ValueList

doStartElement

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

getIndex

public int getIndex(Value v)
Specified by:
getIndex in interface ValueList

getValue

public Value getValue(int index)
Specified by:
getValue in interface ValueList

getValueCount

public int getValueCount()
Specified by:
getValueCount in interface ValueList

iterator

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

removeValue

public void removeValue(int index)
Specified by:
removeValue in interface ValueList

setValue

public void setValue(int index,
                     Value v)
Specified by:
setValue in interface ValueList

NASA World Wind