NASA World Wind

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

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.xml.ElementParser
      extended by gov.nasa.worldwind.applications.gio.ebrim.InternationalStringParser
All Implemented Interfaces:
InternationalString, java.lang.Iterable<LocalizedString>
Direct Known Subclasses:
DescriptionParser, NameParser, UsageDescriptionParser

public class InternationalStringParser
extends ElementParser
implements InternationalString


Field Summary
static java.lang.String ELEMENT_NAME
           
 
Constructor Summary
InternationalStringParser(java.lang.String elementName, org.xml.sax.Attributes attributes)
           
 
Method Summary
 void addLocalizedString(int index, LocalizedString ls)
           
 void addLocalizedString(LocalizedString ls)
           
 void addLocalizedStrings(java.util.Collection<? extends LocalizedString> c)
           
 void clearLocalizedStrings()
           
protected  void doStartElement(java.lang.String name, org.xml.sax.Attributes attributes)
           
 int getIndex(LocalizedString ls)
           
 LocalizedString getLocalizedString(int index)
           
 int getLocalizedStringCount()
           
 java.util.Iterator<LocalizedString> iterator()
           
 void removeLocalizedString(int index)
           
 void setLocalizedString(int index, LocalizedString ls)
           
 
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 java.lang.String ELEMENT_NAME
See Also:
Constant Field Values
Constructor Detail

InternationalStringParser

public InternationalStringParser(java.lang.String elementName,
                                 org.xml.sax.Attributes attributes)
Method Detail

addLocalizedString

public void addLocalizedString(int index,
                               LocalizedString ls)
Specified by:
addLocalizedString in interface InternationalString

addLocalizedString

public void addLocalizedString(LocalizedString ls)
Specified by:
addLocalizedString in interface InternationalString

addLocalizedStrings

public void addLocalizedStrings(java.util.Collection<? extends LocalizedString> c)
Specified by:
addLocalizedStrings in interface InternationalString

clearLocalizedStrings

public void clearLocalizedStrings()
Specified by:
clearLocalizedStrings in interface InternationalString

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(LocalizedString ls)
Specified by:
getIndex in interface InternationalString

getLocalizedString

public LocalizedString getLocalizedString(int index)
Specified by:
getLocalizedString in interface InternationalString

getLocalizedStringCount

public int getLocalizedStringCount()
Specified by:
getLocalizedStringCount in interface InternationalString

iterator

public java.util.Iterator<LocalizedString> iterator()
Specified by:
iterator in interface java.lang.Iterable<LocalizedString>

removeLocalizedString

public void removeLocalizedString(int index)
Specified by:
removeLocalizedString in interface InternationalString

setLocalizedString

public void setLocalizedString(int index,
                               LocalizedString ls)
Specified by:
setLocalizedString in interface InternationalString

NASA World Wind