public class TitleExtractingRule extends BasicBlockRule
<title> element from the
page and exports it as the title property.tagProcessorContext| Constructor and Description |
|---|
TitleExtractingRule(ContentProperty propertyToExport) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
processEnd(Tag tag,
Object data)
Called when a block is ended (i.e.
|
protected Object |
processStart(Tag tag)
Called when a block is started (i.e.
|
processsetTagProcessorContextpublic TitleExtractingRule(ContentProperty propertyToExport)
protected Object processStart(Tag tag) throws IOException
BasicBlockRule<opening> tag is encountered).processStart in class BasicBlockRuletag - Opening tag.BasicBlockRule.processEnd(Tag, Object). May be null.IOExceptionprotected void processEnd(Tag tag, Object data) throws IOException
BasicBlockRule</closing> tag is encountered).processEnd in class BasicBlockRuletag - Closing tag. This will not have any attributes available (as they are associated
with an opening tag. To get access to the attributes, the BasicBlockRule.processStart(Tag) method
should access them and return them as data.data - Data returned from BasicBlockRule.processStart(Tag). May be null.IOExceptionCopyright © 2015. All Rights Reserved.