Package ca.phon.query.db.xml
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 TypeMethodDescriptionint
addResultValue
(ResultValue resultValue) Add the given result value.Gets the map of metadata for this result.int
Get the number of result values.int
Gets the record index for this result.getResultValue
(int idx) Get the specified result valuegetResultValue
(String name) Get the result value by nameGets the schema of this result.Get the JAXB element associated with this object.boolean
Is this result excluded from reportsiterator()
removeResultValue
(int idx) Remove the specified result valuevoid
setExcluded
(boolean excluded) Set the excluded status of this result.void
setRecordIndex
(int index) Sets the record index for this result.void
Sets the schema of this result.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
getXMLObject
Get the JAXB element associated with this object.- Specified by:
getXMLObject
in interfaceJAXBWrapper<ResultType>
- Returns:
-
getRecordIndex
public int getRecordIndex()Description copied from interface:Result
Gets the record index for this result.- Specified by:
getRecordIndex
in interfaceResult
- Returns:
- the record index
-
setRecordIndex
public void setRecordIndex(int index) Description copied from interface:Result
Sets the record index for this result.- Specified by:
setRecordIndex
in interfaceResult
- Parameters:
index
- the record index
-
getMetadata
Description copied from interface:Result
Gets the map of metadata for this result.- Specified by:
getMetadata
in interfaceResult
- Returns:
- the metadata map
-
getSchema
Description copied from interface:Result
Gets the schema of this result. -
setSchema
Description copied from interface:Result
Sets the schema of this result. -
toString
-
isExcluded
public boolean isExcluded()Description copied from interface:Result
Is this result excluded from reports- Specified by:
isExcluded
in interfaceResult
- Returns:
true
if this result should be excludedfalse
otherwise.
-
setExcluded
public void setExcluded(boolean excluded) Description copied from interface:Result
Set the excluded status of this result.- Specified by:
setExcluded
in interfaceResult
-
iterator
- Specified by:
iterator
in interfaceIterable<ResultValue>
-
getNumberOfResultValues
public int getNumberOfResultValues()Description copied from interface:Result
Get the number of result values.- Specified by:
getNumberOfResultValues
in interfaceResult
- Returns:
- number of result values
-
getResultValue
Description copied from interface:Result
Get the specified result value- Specified by:
getResultValue
in interfaceResult
- Returns:
- result value
-
removeResultValue
Description copied from interface:Result
Remove the specified result value- Specified by:
removeResultValue
in interfaceResult
- Returns:
- the removed result value
-
addResultValue
Description copied from interface:Result
Add the given result value.- Specified by:
addResultValue
in interfaceResult
- Returns:
- index of added result value
-
getResultValue
Description copied from interface:Result
Get the result value by name- Specified by:
getResultValue
in interfaceResult
- Returns:
- result value optional
-