|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.ocr.docparser.sections.SectionDef
public class SectionDef
Definition of a section in the document
Constructor Summary | |
---|---|
SectionDef(java.lang.String name)
constructor |
Method Summary | |
---|---|
void |
addField(FieldDef def)
|
void |
addTextMark(TextMarkDef def)
|
FieldDef |
getField(int i)
get field by index |
int |
getFieldCount()
number of fields to be read |
ILengthType |
getLengthType()
|
TextMarkDef |
getMark(int i)
get mark by index |
int |
getMarkCount()
number of marks/labels to find |
java.lang.String |
getName()
name of the section |
IStartCondition |
getStartCondition()
gets the condition used to know when this section starts |
boolean |
isMandatory()
is the section mandatory (default is true). |
boolean |
isRepeatable()
can the section be repeated? |
void |
load(org.w3c.dom.Node n)
load from XML node |
void |
saveToXml(org.w3c.dom.Document document,
org.w3c.dom.Node root)
|
void |
saveToXml(org.w3c.dom.Document document,
org.w3c.dom.Node root,
java.lang.String nodeName)
save to Xml |
void |
setLengthType(ILengthType lengthType)
sets length of the section, if null, the length is variable and it finished when the next section starts |
void |
setMandatory(boolean f)
is this section mandatory or optional? if a section is not mandatory, all sections after that now must also be optional |
void |
setName(java.lang.String name)
name of the section |
void |
setRepeatable(boolean repeatable)
repeatable sections must have fixed length and will be repeated until the next section starts. |
void |
setStartCondition(IStartCondition startCondition)
set the condition used to know when this section starts. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SectionDef(java.lang.String name)
name
- Method Detail |
---|
public IStartCondition getStartCondition()
public void setStartCondition(IStartCondition startCondition)
startCondition
- public boolean isRepeatable()
public boolean isMandatory()
public void setRepeatable(boolean repeatable)
repeatable
- public void setMandatory(boolean f)
f
- public ILengthType getLengthType()
public void setLengthType(ILengthType lengthType)
lengthType
- public java.lang.String getName()
public void setName(java.lang.String name)
name
- public int getMarkCount()
public int getFieldCount()
public TextMarkDef getMark(int i)
i
-
public FieldDef getField(int i)
i
-
public void addTextMark(TextMarkDef def)
public void addField(FieldDef def)
public void saveToXml(org.w3c.dom.Document document, org.w3c.dom.Node root) throws java.lang.Exception
java.lang.Exception
public void saveToXml(org.w3c.dom.Document document, org.w3c.dom.Node root, java.lang.String nodeName) throws java.lang.Exception
os
-
java.lang.Exception
public void load(org.w3c.dom.Node n)
n
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |