NASA World Wind

gov.nasa.worldwind.applications.gio.ows
Class ExceptionReportParser

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.xml.ElementParser
      extended by gov.nasa.worldwind.applications.gio.ows.ExceptionReportParser
All Implemented Interfaces:
ExceptionReport, Iterable<ExceptionType>

public class ExceptionReportParser
extends ElementParser
implements ExceptionReport


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
ExceptionReportParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addException(ExceptionType e)
           
 void addException(int index, ExceptionType e)
           
 void addExceptions(Collection<? extends ExceptionType> c)
           
 void clearExceptions()
           
protected  void doStartElement(String name, Attributes attributes)
           
 ExceptionType getException(int index)
           
 int getExceptionCount()
           
 int getIndex(ExceptionType e)
           
 String getLang()
           
 String getVersion()
           
 Iterator<ExceptionType> iterator()
           
 void removeException(int index)
           
 void setException(int index, ExceptionType e)
           
 void setLang(String lang)
           
 void setVersion(String version)
           
 
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

ExceptionReportParser

public ExceptionReportParser(String elementName,
                             Attributes attributes)
Method Detail

addException

public void addException(ExceptionType e)
Specified by:
addException in interface ExceptionReport

addException

public void addException(int index,
                         ExceptionType e)
Specified by:
addException in interface ExceptionReport

addExceptions

public void addExceptions(Collection<? extends ExceptionType> c)
Specified by:
addExceptions in interface ExceptionReport

clearExceptions

public void clearExceptions()
Specified by:
clearExceptions in interface ExceptionReport

doStartElement

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

getException

public ExceptionType getException(int index)
Specified by:
getException in interface ExceptionReport

getExceptionCount

public int getExceptionCount()
Specified by:
getExceptionCount in interface ExceptionReport

getIndex

public int getIndex(ExceptionType e)
Specified by:
getIndex in interface ExceptionReport

getLang

public String getLang()
Specified by:
getLang in interface ExceptionReport

getVersion

public String getVersion()
Specified by:
getVersion in interface ExceptionReport

iterator

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

removeException

public void removeException(int index)
Specified by:
removeException in interface ExceptionReport

setException

public void setException(int index,
                         ExceptionType e)
Specified by:
setException in interface ExceptionReport

setLang

public void setLang(String lang)
Specified by:
setLang in interface ExceptionReport

setVersion

public void setVersion(String version)
Specified by:
setVersion in interface ExceptionReport

NASA World Wind