NASA World Wind

gov.nasa.worldwind.applications.gio.csw
Class SearchResultsParser

java.lang.Object
  extended by gov.nasa.worldwind.applications.gio.xml.ElementParser
      extended by gov.nasa.worldwind.applications.gio.csw.SearchResultsParser
All Implemented Interfaces:
SearchResults, Iterable<Object>
Direct Known Subclasses:
SearchResultsParserEBRIM

public class SearchResultsParser
extends ElementParser
implements SearchResults


Field Summary
static String ELEMENT_NAME
           
 
Constructor Summary
SearchResultsParser(String elementName, Attributes attributes)
           
 
Method Summary
 void addRecord(int index, Object o)
           
 void addRecord(Object o)
           
 void addRecords(Collection<?> c)
           
 void clearRecords()
           
 ElementSetType getElementSet()
           
 String getExpires()
           
 int getIndex(Object o)
           
 int getNextRecord()
           
 int getNumberOfRecordsMatched()
           
 int getNumberOfRecordsReturned()
           
 Object getRecord(int index)
           
 int getRecordCount()
           
 String getRecordSchema()
           
 String getResultSetId()
           
 Iterator<Object> iterator()
           
protected static ElementSetType parseElementSetType(String s)
           
protected static int parseInt(String s)
           
 void removeRecord(int index)
           
 void setElementSet(ElementSetType elementSet)
           
 void setExpires(String expires)
           
 void setNextRecord(int nextRecord)
           
 void setNumberOfRecordsMatched(int numberOfRecordsMatched)
           
 void setNumberOfRecordsReturned(int numberOfRecordsReturned)
           
 void setRecord(int index, Object o)
           
 void setRecordSchema(String recordSchema)
           
 void setResultSetId(String resultSetId)
           
 
Methods inherited from class gov.nasa.worldwind.applications.gio.xml.ElementParser
characters, doCharacters, doEndElement, doStartElement, 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

SearchResultsParser

public SearchResultsParser(String elementName,
                           Attributes attributes)
Method Detail

addRecord

public void addRecord(int index,
                      Object o)
Specified by:
addRecord in interface SearchResults

addRecord

public void addRecord(Object o)
Specified by:
addRecord in interface SearchResults

addRecords

public void addRecords(Collection<?> c)
Specified by:
addRecords in interface SearchResults

clearRecords

public void clearRecords()
Specified by:
clearRecords in interface SearchResults

getElementSet

public ElementSetType getElementSet()
Specified by:
getElementSet in interface SearchResults

getExpires

public String getExpires()
Specified by:
getExpires in interface SearchResults

getIndex

public int getIndex(Object o)
Specified by:
getIndex in interface SearchResults

getNextRecord

public int getNextRecord()
Specified by:
getNextRecord in interface SearchResults

getNumberOfRecordsMatched

public int getNumberOfRecordsMatched()
Specified by:
getNumberOfRecordsMatched in interface SearchResults

getNumberOfRecordsReturned

public int getNumberOfRecordsReturned()
Specified by:
getNumberOfRecordsReturned in interface SearchResults

getRecord

public Object getRecord(int index)
Specified by:
getRecord in interface SearchResults

getRecordCount

public int getRecordCount()
Specified by:
getRecordCount in interface SearchResults

getRecordSchema

public String getRecordSchema()
Specified by:
getRecordSchema in interface SearchResults

getResultSetId

public String getResultSetId()
Specified by:
getResultSetId in interface SearchResults

iterator

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

parseElementSetType

protected static ElementSetType parseElementSetType(String s)

parseInt

protected static int parseInt(String s)

removeRecord

public void removeRecord(int index)
Specified by:
removeRecord in interface SearchResults

setElementSet

public void setElementSet(ElementSetType elementSet)
Specified by:
setElementSet in interface SearchResults

setExpires

public void setExpires(String expires)
Specified by:
setExpires in interface SearchResults

setNextRecord

public void setNextRecord(int nextRecord)
Specified by:
setNextRecord in interface SearchResults

setNumberOfRecordsMatched

public void setNumberOfRecordsMatched(int numberOfRecordsMatched)
Specified by:
setNumberOfRecordsMatched in interface SearchResults

setNumberOfRecordsReturned

public void setNumberOfRecordsReturned(int numberOfRecordsReturned)
Specified by:
setNumberOfRecordsReturned in interface SearchResults

setRecord

public void setRecord(int index,
                      Object o)
Specified by:
setRecord in interface SearchResults

setRecordSchema

public void setRecordSchema(String recordSchema)
Specified by:
setRecordSchema in interface SearchResults

setResultSetId

public void setResultSetId(String resultSetId)
Specified by:
setResultSetId in interface SearchResults

NASA World Wind