|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object echopoint.ui.template.taghandlers.HtmlBodyCssStripper
The HtmlBodyCssStripper tag handler removes all traces of the HTML and BODY tags during parsing. This allows full HTML files to be included as fragments into further enclosing HTML. This handler will extract CSS links (via LINK tags), META tags and also STYLE tags and place them into the TemplateParseContext. This fix up allows for CSS support that were otherwise wihtin the HTML section.
Constructor Summary | |
HtmlBodyCssStripper()
|
Method Summary | |
void |
executeTag(ParseContext context,
PositionReader input,
boolean parseTime)
Does not execution and hence no content is placed in these positions |
long |
getLineNumber()
Returns the line number at which this tag handler was invoked. |
java.lang.String |
getNameProperty()
Called to get the identification tag attribute property called "name". |
java.util.Map |
getProperties()
Called to get a Map of tag attribute properties and their values. |
long |
getTagLength()
Get the length of the area in the sourcefile. |
long |
getTagStart()
Get start position of the area in the sourcefile this handler processes. |
SGMLTag |
parseTag(CompilationContext context,
PositionReader input,
long startPosition,
SGMLTag startTag)
Parse the HTML, BODY tag or both. |
void |
postParsePostProperties(CompilationContext context)
This method is called after the tag has been compiled and AFTER any tag properties have been processed. |
void |
postParsePreProperties(CompilationContext context)
This method is called after the tag has been compiled but BEFORE any tag properties have been processed. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HtmlBodyCssStripper()
Method Detail |
public void executeTag(ParseContext context, PositionReader input, boolean parseTime) throws java.lang.Exception
executeTag
in interface TagHandler
java.lang.Exception
- anything can happen .. and throw an Exception
which is caught in PageParserpublic long getTagLength()
getTagLength
in interface TagHandler
public long getTagStart()
getTagStart
in interface TagHandler
public SGMLTag parseTag(CompilationContext context, PositionReader input, long startPosition, SGMLTag startTag) throws java.io.IOException
parseTag
in interface TagHandler
context
- The CompilationContext involvedinput
- The PositionReader, located after the Name token
of the TagstartPosition
- The Position parsing of this token beganstartTag
- the SGMLTag found in the file.
java.io.IOException
public java.util.Map getProperties()
TagHandler
getProperties
in interface TagHandler
TagHandler.getProperties()
public java.lang.String getNameProperty()
TagHandler
getNameProperty
in interface TagHandler
TagHandler.getNameProperty()
public long getLineNumber()
TagHandler
getLineNumber
in interface TagHandler
TagHandler.getLineNumber()
public void postParsePreProperties(CompilationContext context)
TagHandler
postParsePreProperties
in interface TagHandler
context
- The CompilationContext involvedTagHandler.postParsePreProperties(CompilationContext)
public void postParsePostProperties(CompilationContext context)
TagHandler
postParsePostProperties
in interface TagHandler
context
- The CompilationContext involvedTagHandler.postParsePostProperties(echopoint.template.CompilationContext)
|
EchoPoint 1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |