Class XMLResultValue

java.lang.Object
ca.phon.query.db.xml.XMLResultValue
All Implemented Interfaces:
ResultValue, JAXBWrapper<ResultValueType>

public class XMLResultValue extends Object implements ResultValue, JAXBWrapper<ResultValueType>
A result value used in the XMLResult.
  • Method Details

    • getXMLObject

      public ResultValueType getXMLObject()
      Get the JAXB element associated with this object.
      Specified by:
      getXMLObject in interface JAXBWrapper<ResultValueType>
      Returns:
    • getTierName

      public String getTierName()
      Description copied from interface: ResultValue
      Gets the tier name for this result value.
      Specified by:
      getTierName in interface ResultValue
      Returns:
      the tier name
    • setTierName

      public void setTierName(String tierName)
      Description copied from interface: ResultValue
      Sets the tier name for this result value.
      Specified by:
      setTierName in interface ResultValue
      Parameters:
      tierName - the tier name
    • getRange

      public Range getRange()
      Description copied from interface: ResultValue
      Gets the range for this result value.
      Specified by:
      getRange in interface ResultValue
      Returns:
      the range
    • setRange

      public void setRange(Range range)
      Description copied from interface: ResultValue
      Sets the range for this result value.
      Specified by:
      setRange in interface ResultValue
      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 interface ResultValue
      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 interface ResultValue
      Parameters:
      groupIndex - the group index
    • getData

      public String getData()
      Description copied from interface: ResultValue
      Gets the data for this result value.
      Specified by:
      getData in interface ResultValue
      Returns:
      the data
    • setData

      public void setData(String data)
      Description copied from interface: ResultValue
      Sets the data for this result value.
      Specified by:
      setData in interface ResultValue
      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 regex Matchers or PhonexMatchers.
      Specified by:
      getMatcherGroupCount in interface ResultValue
      Returns:
      number of matcher groups
    • getMatcherGroup

      public String getMatcherGroup(int index)
      Description copied from interface: ResultValue
      Get the value of the specified matcher group.
      Specified by:
      getMatcherGroup in interface ResultValue
      Returns:
      value of the specified group
    • getName

      public String getName()
      Description copied from interface: ResultValue
      Get the name for this result value
      Specified by:
      getName in interface ResultValue
      Returns:
      name if not specified this will be the same as the tier name
    • setName

      public void setName(String name)
      Description copied from interface: ResultValue
      Set the name for this result value
      Specified by:
      setName in interface ResultValue