Package ca.phon.query.db
Interface ResultValue
- All Known Implementing Classes:
XMLResultValue
public interface ResultValue
A reference to a piece of data in a result.
-
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.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
-
getName
String getName()Get the name for this result value- Returns:
- name if not specified this will be the same as the tier name
-
setName
Set the name for this result value- Parameters:
name
-
-
getTierName
String getTierName()Gets the tier name for this result value.- Returns:
- the tier name
-
setTierName
Sets the tier name for this result value.- Parameters:
tierName
- the tier name
-
getRange
Range getRange()Gets the range for this result value.- Returns:
- the range
-
setRange
Sets the range for this result value.- Parameters:
range
- the range
-
getGroupIndex
int getGroupIndex()Gets the group index for this result value.- Returns:
- the group index
-
setGroupIndex
void setGroupIndex(int groupIndex) Sets the group index for this result value.- Parameters:
groupIndex
- the group index
-
getData
String getData()Gets the data for this result value.- Returns:
- the data
-
setData
Sets the data for this result value.- Parameters:
data
- the data
-
getMatcherGroupCount
int getMatcherGroupCount()Returns the number of 'matcher' groups either that were produced by either regexMatcher
s orPhonexMatcher
s.- Returns:
- number of matcher groups
-
getMatcherGroup
Get the value of the specified matcher group.- Parameters:
index
-- Returns:
- value of the specified group
-