|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.java4less.ocr.docparser.data.Document
public class Document
Parsed document in the image file.
Constructor Summary | |
---|---|
Document()
|
Method Summary | |
---|---|
void |
addError(DocParseException e)
add error to the document |
void |
addSection(Section s)
add section instance to document |
Section[] |
getAllSections()
get all sections in the same sequence they are in the text file |
DocumentDef |
getDefinition()
get document definition |
DocParseException[] |
getErrors()
get all errors found while parsing the document |
java.lang.String |
getName()
name of the document |
Section[] |
getSectionByName(java.lang.String name)
get all repetitions of the section with a certain name |
boolean |
hasError()
returns true if there is an error in the docuemtns |
void |
setDefinition(DocumentDef def)
set document definition |
void |
toXml(org.w3c.dom.Document doc,
org.w3c.dom.Node root)
exports document to XML |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Document()
Method Detail |
---|
public DocumentDef getDefinition()
public void setDefinition(DocumentDef def)
def
- public Section[] getSectionByName(java.lang.String name)
public DocParseException[] getErrors()
public boolean hasError()
public void addError(DocParseException e)
e
- public Section[] getAllSections()
public void toXml(org.w3c.dom.Document doc, org.w3c.dom.Node root) throws java.lang.Exception
doc
- root
-
java.lang.Exception
public java.lang.String getName()
public void addSection(Section s)
s
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |