com.java4less.ocr.docparser.sections
Class TextMarkCondition
java.lang.Object
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextMarkCondition
public TextMarkCondition(TextMarkDef m)
- creates a label based condition
- Parameters:
m
- the label that triggers the start of the section
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