com.java4less.ocr.docparser
Class TextValue

java.lang.Object
  extended by com.java4less.ocr.docparser.TextValue
Direct Known Subclasses:
MatchedValue

public class TextValue
extends java.lang.Object

Class used to hold a value (and its location) read from in the document


Constructor Summary
TextValue()
           
TextValue(java.lang.String s, int b, int e)
           
 
Method Summary
 int getEnd()
          end column
 int getLineIndex()
          line where this value is located
 int getStart()
          return start column
 java.lang.String getValue()
          return value as string
 void setEnd(int i)
          end column
 void setLineIndex(int lineIndex)
          line where this value is located
 void setStart(int i)
          start column
 void setValue(java.lang.String value)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextValue

public TextValue()

TextValue

public TextValue(java.lang.String s,
                 int b,
                 int e)
Parameters:
s - value
b - start column
e - end column
Method Detail

getStart

public int getStart()
return start column

Returns:

setStart

public void setStart(int i)
start column

Parameters:
i -

getEnd

public int getEnd()
end column

Returns:

setEnd

public void setEnd(int i)
end column

Parameters:
i -

getValue

public java.lang.String getValue()
return value as string

Returns:

setValue

public void setValue(java.lang.String value)

getLineIndex

public int getLineIndex()
line where this value is located

Returns:

setLineIndex

public void setLineIndex(int lineIndex)
line where this value is located

Parameters:
lineIndex -