com.java4less.ocr.docparser.sections
Class TextMarkCondition

java.lang.Object
  extended by com.java4less.ocr.docparser.sections.TextMarkCondition
All Implemented Interfaces:
IStartCondition

public class TextMarkCondition
extends java.lang.Object
implements IStartCondition

check if the first line of the section has one of the provided marks


Constructor Summary
TextMarkCondition(TextMarkDef m)
          creates a label based condition
 
Method Summary
 boolean isSectionStart(ParserContext context)
           
 void saveToXml(org.w3c.dom.Document document, org.w3c.dom.Node n)
          save definition to XML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextMarkCondition

public TextMarkCondition(TextMarkDef m)
creates a label based condition

Parameters:
m - the label that triggers the start of the section
Method Detail

isSectionStart

public boolean isSectionStart(ParserContext context)
Specified by:
isSectionStart in interface IStartCondition

saveToXml

public void saveToXml(org.w3c.dom.Document document,
                      org.w3c.dom.Node n)
               throws java.lang.Exception
save definition to XML

Specified by:
saveToXml in interface IStartCondition
Throws:
java.lang.Exception