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, java.lang.Iterable<java.lang.Object>
- Direct Known Subclasses:
- SearchResultsParserEBRIM
public class SearchResultsParser
- extends ElementParser
- implements SearchResults
|
Constructor Summary |
SearchResultsParser(java.lang.String elementName,
org.xml.sax.Attributes attributes)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ELEMENT_NAME
public static final java.lang.String ELEMENT_NAME
- See Also:
- Constant Field Values
SearchResultsParser
public SearchResultsParser(java.lang.String elementName,
org.xml.sax.Attributes attributes)
addRecord
public void addRecord(int index,
java.lang.Object o)
- Specified by:
addRecord in interface SearchResults
addRecord
public void addRecord(java.lang.Object o)
- Specified by:
addRecord in interface SearchResults
addRecords
public void addRecords(java.util.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 java.lang.String getExpires()
- Specified by:
getExpires in interface SearchResults
getIndex
public int getIndex(java.lang.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 java.lang.Object getRecord(int index)
- Specified by:
getRecord in interface SearchResults
getRecordCount
public int getRecordCount()
- Specified by:
getRecordCount in interface SearchResults
getRecordSchema
public java.lang.String getRecordSchema()
- Specified by:
getRecordSchema in interface SearchResults
getResultSetId
public java.lang.String getResultSetId()
- Specified by:
getResultSetId in interface SearchResults
iterator
public java.util.Iterator<java.lang.Object> iterator()
- Specified by:
iterator in interface java.lang.Iterable<java.lang.Object>
parseElementSetType
protected static ElementSetType parseElementSetType(java.lang.String s)
parseInt
protected static int parseInt(java.lang.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(java.lang.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,
java.lang.Object o)
- Specified by:
setRecord in interface SearchResults
setRecordSchema
public void setRecordSchema(java.lang.String recordSchema)
- Specified by:
setRecordSchema in interface SearchResults
setResultSetId
public void setResultSetId(java.lang.String resultSetId)
- Specified by:
setResultSetId in interface SearchResults