Package ca.phon.query.db.xml
Class XMLResultValue
java.lang.Object
ca.phon.query.db.xml.XMLResultValue
- All Implemented Interfaces:
ResultValue
,JAXBWrapper<ResultValueType>
A result value used in the
XMLResult
.-
Method Summary
Modifier and TypeMethodDescriptiongetData()
Gets the data for this result value.int
Gets the group index for this result value.getMatcherGroup
(int index) Get the value of the specified matcher group.int
Returns the number of 'matcher' groups either that were produced by either regexMatcher
s orPhonexMatcher
s.getName()
Get the name for this result valuegetRange()
Gets the range for this result value.Gets the tier name for this result value.Get the JAXB element associated with this object.void
Sets the data for this result value.void
setGroupIndex
(int groupIndex) Sets the group index for this result value.void
Set the name for this result valuevoid
Sets the range for this result value.void
setTierName
(String tierName) Sets the tier name for this result value.
-
Method Details
-
getXMLObject
Get the JAXB element associated with this object.- Specified by:
getXMLObject
in interfaceJAXBWrapper<ResultValueType>
- Returns:
-
getTierName
Description copied from interface:ResultValue
Gets the tier name for this result value.- Specified by:
getTierName
in interfaceResultValue
- Returns:
- the tier name
-
setTierName
Description copied from interface:ResultValue
Sets the tier name for this result value.- Specified by:
setTierName
in interfaceResultValue
- Parameters:
tierName
- the tier name
-
getRange
Description copied from interface:ResultValue
Gets the range for this result value.- Specified by:
getRange
in interfaceResultValue
- Returns:
- the range
-
setRange
Description copied from interface:ResultValue
Sets the range for this result value.- Specified by:
setRange
in interfaceResultValue
- Parameters:
range
- the range
-
getGroupIndex
public int getGroupIndex()Description copied from interface:ResultValue
Gets the group index for this result value.- Specified by:
getGroupIndex
in interfaceResultValue
- Returns:
- the group index
-
setGroupIndex
public void setGroupIndex(int groupIndex) Description copied from interface:ResultValue
Sets the group index for this result value.- Specified by:
setGroupIndex
in interfaceResultValue
- Parameters:
groupIndex
- the group index
-
getData
Description copied from interface:ResultValue
Gets the data for this result value.- Specified by:
getData
in interfaceResultValue
- Returns:
- the data
-
setData
Description copied from interface:ResultValue
Sets the data for this result value.- Specified by:
setData
in interfaceResultValue
- Parameters:
data
- the data
-
getMatcherGroupCount
public int getMatcherGroupCount()Description copied from interface:ResultValue
Returns the number of 'matcher' groups either that were produced by either regexMatcher
s orPhonexMatcher
s.- Specified by:
getMatcherGroupCount
in interfaceResultValue
- Returns:
- number of matcher groups
-
getMatcherGroup
Description copied from interface:ResultValue
Get the value of the specified matcher group.- Specified by:
getMatcherGroup
in interfaceResultValue
- Returns:
- value of the specified group
-
getName
Description copied from interface:ResultValue
Get the name for this result value- Specified by:
getName
in interfaceResultValue
- Returns:
- name if not specified this will be the same as the tier name
-
setName
Description copied from interface:ResultValue
Set the name for this result value- Specified by:
setName
in interfaceResultValue
-