fiftyone.mobile.detection.entities
Class NodeNumericIndex

java.lang.Object
  extended by fiftyone.mobile.detection.entities.BaseEntity
      extended by fiftyone.mobile.detection.entities.NodeNumericIndex

public class NodeNumericIndex
extends BaseEntity

Represents a child of a node with a numeric value rather than character values. Used to support the Numeric matching method if an exact match can't be found.


Field Summary
private  Node _node
           
(package private)  int RelatedNodeOffset
          The node offset which relates to this sequence of characters.
 
Constructor Summary
NodeNumericIndex(Dataset dataSet, short value, int relatedNodeOffset)
           
 
Method Summary
(package private)  Node getNode()
           
(package private)  int getValue()
           
 
Methods inherited from class fiftyone.mobile.detection.entities.BaseEntity
binarySearch, getDataSet, getIndex, readIntegerArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RelatedNodeOffset

final int RelatedNodeOffset
The node offset which relates to this sequence of characters.


_node

private Node _node
Constructor Detail

NodeNumericIndex

NodeNumericIndex(Dataset dataSet,
                 short value,
                 int relatedNodeOffset)
Parameters:
dataSet - The data set the node is contained within
value - The value of the numeric index. Added to it's index field.
relatedNodeOffset - The offset in the list of nodes to the node the index relates to
Method Detail

getValue

int getValue()
Returns:
The numeric value of the index.

getNode

Node getNode()
       throws IOException
Returns:
The node the numeric index relates to.
Throws:
IOException