com.java4less.ocr.docparser.data
Class Field

java.lang.Object
  extended by com.java4less.ocr.docparser.data.Field

public class Field
extends java.lang.Object

an instance of a field in the text file


Constructor Summary
Field(FieldDef f, TextValue v)
           
 
Method Summary
 FieldDef getFielddef()
          get definition object
 java.lang.String getName()
          name of the field
 TextValue getValue()
          get value
 void toXml(org.w3c.dom.Document doc, org.w3c.dom.Node fieldNode)
          convert to xml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Field

public Field(FieldDef f,
             TextValue v)
Method Detail

getValue

public TextValue getValue()
get value

Returns:

getFielddef

public FieldDef getFielddef()
get definition object

Returns:

getName

public java.lang.String getName()
name of the field

Returns:

toXml

public void toXml(org.w3c.dom.Document doc,
                  org.w3c.dom.Node fieldNode)
           throws java.lang.Exception
convert to xml

Parameters:
doc -
node -
Throws:
java.lang.Exception