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.
|
process
setTagProcessorContext
public TitleExtractingRule(ContentProperty propertyToExport)
protected Object processStart(Tag tag) throws IOException
BasicBlockRule
<opening>
tag is encountered).processStart
in class BasicBlockRule
tag
- Opening tag.BasicBlockRule.processEnd(Tag, Object)
. May be null.IOException
protected void processEnd(Tag tag, Object data) throws IOException
BasicBlockRule
</closing>
tag is encountered).processEnd
in class BasicBlockRule
tag
- 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.IOException
Copyright © 2015. All Rights Reserved.