|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.ocr.docparser.data.Section
public class Section
an instance of a section in the document
Constructor Summary | |
---|---|
Section()
|
Method Summary | |
---|---|
void |
addField(Field f)
add field in section |
void |
addLine(java.lang.String s)
add text line to the section |
java.lang.String |
getContent()
get content of the section |
SectionDef |
getDefinition()
get definition object |
int |
getEndLine()
index of last line of the section |
Field |
getField(int index)
get field by index |
java.lang.String |
getField(java.lang.String name)
get value of field in section |
int |
getFieldCount()
number of fields in section |
java.lang.String[] |
getLines()
get content of the secion as an array of lines |
java.lang.String |
getName()
name of the section |
int |
getRepetition()
current repetition of the section |
int |
getStartLine()
index of first line of the section |
void |
setDefinition(SectionDef definition)
|
void |
setEndLine(int endLine)
index of last line of the section |
void |
setRepetition(int repetition)
|
void |
setStartLine(int startLine)
index of first line of the section |
void |
toXml(org.w3c.dom.Document doc,
org.w3c.dom.Node sectioNode)
convert to xml |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Section()
Method Detail |
---|
public java.lang.String getName()
public java.lang.String getContent()
public java.lang.String[] getLines()
public int getFieldCount()
public Field getField(int index)
index
-
public java.lang.String getField(java.lang.String name)
public void toXml(org.w3c.dom.Document doc, org.w3c.dom.Node sectioNode) throws java.lang.Exception
doc
- node
-
java.lang.Exception
public SectionDef getDefinition()
public void setDefinition(SectionDef definition)
public int getStartLine()
public void setStartLine(int startLine)
startLine
- public int getEndLine()
public void setEndLine(int endLine)
endLine
- public void addLine(java.lang.String s)
s
- public void addField(Field f)
f
- public int getRepetition()
public void setRepetition(int repetition)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |