Class MarkupTagAction
java.lang.Object
com.kohlschutter.boilerpipe.sax.MarkupTagAction
- All Implemented Interfaces:
TagAction
Assigns labels for element CSS classes and ids to the corresponding
TextBlock. CSS
classes are prefixed by DefaultLabels.MARKUP_PREFIX., and IDs are prefixed
by DefaultLabels.MARKUP_PREFIX#-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate LinkedList<List<String>> private static final Pattern -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanend(BoilerpipeHTMLContentHandler instance, String localName, String qName) booleanstart(BoilerpipeHTMLContentHandler instance, String localName, String qName, Attributes atts)
-
Field Details
-
isBlockLevel
private final boolean isBlockLevel -
labelStack
-
PAT_NUM
-
-
Constructor Details
-
MarkupTagAction
public MarkupTagAction(boolean isBlockLevel)
-
-
Method Details
-
start
public boolean start(BoilerpipeHTMLContentHandler instance, String localName, String qName, Attributes atts) throws SAXException - Specified by:
startin interfaceTagAction- Throws:
SAXException
-
end
public boolean end(BoilerpipeHTMLContentHandler instance, String localName, String qName) throws SAXException - Specified by:
endin interfaceTagAction- Throws:
SAXException
-
changesTagLevel
public boolean changesTagLevel()- Specified by:
changesTagLevelin interfaceTagAction
-
getAncestorLabels
-