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.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
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
-
getTierName
-
setTierName
Sets the tier name for this result value.- Parameters:
tierName
- the tier name
-
getRange
-
setRange
-
getData
-
setData
-
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
-