Class MSOfficeDocumentPropertiesRule
- java.lang.Object
-
- com.opensymphony.module.sitemesh.html.BasicRule
-
- com.opensymphony.module.sitemesh.html.BlockExtractingRule
-
- com.opensymphony.module.sitemesh.html.rules.MSOfficeDocumentPropertiesRule
-
- All Implemented Interfaces:
TagRule
public class MSOfficeDocumentPropertiesRule extends BlockExtractingRule
Extracts the extra properties saved in HTML from MS Office applications (Word and Excel), such as Author, Company, Version, etc.- Author:
- Joe Walnes
-
-
Field Summary
Fields Modifier and Type Field Description private booleaninDocumentPropertiesprivate PageBuilderpage
-
Constructor Summary
Constructors Constructor Description MSOfficeDocumentPropertiesRule(PageBuilder page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidend(Tag tag)voidprocess(Tag tag)booleanshouldProcess(String name)Called by the HTMLProcessor to determine if a rule should be called for a given tag.protected voidstart(Tag tag)-
Methods inherited from class com.opensymphony.module.sitemesh.html.BlockExtractingRule
createBuffer
-
Methods inherited from class com.opensymphony.module.sitemesh.html.BasicRule
currentBuffer, setContext
-
-
-
-
Field Detail
-
page
private final PageBuilder page
-
inDocumentProperties
private boolean inDocumentProperties
-
-
Constructor Detail
-
MSOfficeDocumentPropertiesRule
public MSOfficeDocumentPropertiesRule(PageBuilder page)
-
-
Method Detail
-
shouldProcess
public boolean shouldProcess(String name)
Description copied from interface:TagRuleCalled by the HTMLProcessor to determine if a rule should be called for a given tag. The name parameter will always be passed in lowercase.- Specified by:
shouldProcessin interfaceTagRule- Overrides:
shouldProcessin classBasicRule
-
process
public void process(Tag tag)
- Specified by:
processin interfaceTagRule- Overrides:
processin classBlockExtractingRule
-
start
protected void start(Tag tag)
- Overrides:
startin classBlockExtractingRule
-
end
protected void end(Tag tag)
- Overrides:
endin classBlockExtractingRule
-
-