Class XMLResult
java.lang.Object
ca.phon.query.db.xml.XMLResult
- All Implemented Interfaces:
Result,JAXBWrapper<ResultType>,Iterable<ResultValue>
XML-based implementation of
Result.-
Method Summary
Modifier and TypeMethodDescriptionintaddResultValue(ResultValue resultValue) Add the given result value.Gets the map of metadata for this result.intGet the number of result values.intGets the record index for this result.getResultValue(int idx) Get the specified result valuegetResultValue(String name) Get the result value by name, this will return the first result value for the given name if there are multiple.getResultValues(String name) Get all result values for the given nameGets the schema of this result.Get the JAXB element associated with this object.booleanIs this result excluded from reportsiterator()removeResultValue(int idx) Remove the specified result valuevoidsetExcluded(boolean excluded) Set the excluded status of this result.voidsetRecordIndex(int index) Sets the record index for this result.voidSets the schema of this result.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getXMLObject
Get the JAXB element associated with this object.- Specified by:
getXMLObjectin interfaceJAXBWrapper<ResultType>- Returns:
-
getRecordIndex
public int getRecordIndex()Description copied from interface:ResultGets the record index for this result.- Specified by:
getRecordIndexin interfaceResult- Returns:
- the record index
-
setRecordIndex
public void setRecordIndex(int index) Description copied from interface:ResultSets the record index for this result.- Specified by:
setRecordIndexin interfaceResult- Parameters:
index- the record index
-
getMetadata
-
getSchema
-
setSchema
-
toString
-
isExcluded
public boolean isExcluded()Description copied from interface:ResultIs this result excluded from reports- Specified by:
isExcludedin interfaceResult- Returns:
trueif this result should be excludedfalseotherwise.
-
setExcluded
public void setExcluded(boolean excluded) Description copied from interface:ResultSet the excluded status of this result.- Specified by:
setExcludedin interfaceResult- Parameters:
excluded-
-
iterator
- Specified by:
iteratorin interfaceIterable<ResultValue>
-
getNumberOfResultValues
public int getNumberOfResultValues()Description copied from interface:ResultGet the number of result values.- Specified by:
getNumberOfResultValuesin interfaceResult- Returns:
- number of result values
-
getResultValue
Description copied from interface:ResultGet the specified result value- Specified by:
getResultValuein interfaceResult- Parameters:
idx-- Returns:
- result value
-
removeResultValue
Description copied from interface:ResultRemove the specified result value- Specified by:
removeResultValuein interfaceResult- Parameters:
idx-- Returns:
- the removed result value
-
addResultValue
Description copied from interface:ResultAdd the given result value.- Specified by:
addResultValuein interfaceResult- Parameters:
resultValue-- Returns:
- index of added result value
-
getResultValues
Description copied from interface:ResultGet all result values for the given name- Specified by:
getResultValuesin interfaceResult- Parameters:
name-- Returns:
- list of result values for given name
-
getResultValue
Description copied from interface:ResultGet the result value by name, this will return the first result value for the given name if there are multiple.- Specified by:
getResultValuein interfaceResult- Parameters:
name-- Returns:
- result value optional
-