gov.nasa.worldwind.applications.gio.csw
Class SearchResultsParser
java.lang.Object
gov.nasa.worldwind.applications.gio.xml.ElementParser
gov.nasa.worldwind.applications.gio.csw.SearchResultsParser
- All Implemented Interfaces:
- SearchResults, Iterable<Object>
- Direct Known Subclasses:
- SearchResultsParserEBRIM
public class SearchResultsParser
- extends ElementParser
- implements SearchResults
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT_NAME
public static final String ELEMENT_NAME
- See Also:
- Constant Field Values
SearchResultsParser
public SearchResultsParser(String elementName,
Attributes attributes)
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