com.devsphere.xml.taglib.process.tag
Class Start
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--javax.servlet.jsp.tagext.BodyTagSupport
|
+--com.devsphere.xml.taglib.support.tag.CommonSupport
|
+--com.devsphere.xml.taglib.process.tag.ProcessSupport
|
+--com.devsphere.xml.taglib.process.tag.Start
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
- public class Start
- extends ProcessSupport
Handler for the <p:start> tag, whose body can process a
startElement() or startDocument() SAX event.
- See Also:
- Serialized Form
| Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
bodyContent |
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
|
Constructor Summary |
Start()
|
|
Method Summary |
protected boolean |
continueLoop()
Returns false since the tag's body needs to be evaluated
only once in order to process the event. |
protected java.util.List |
getAllowedAncestors()
Returns the list of names of the tags that may contain the tag that
is handled by this class. |
java.lang.String |
getTagName()
Returns the name of the handled tag |
protected void |
init()
Initializes the fields of this tag handler. |
protected void |
initLoop()
Initializes the loop to process start-element and start-document events. |
protected boolean |
startLoop()
Returns true if the current event is a
StartElement or StartDocument instance. |
| Methods inherited from class com.devsphere.xml.taglib.support.tag.CommonSupport |
checkVarName, checkVarScope, doCatch, eval, evalBoolean, evalDouble, evalInt, evalString, export, export, getDebug, getLogger, log, log, log, restore |
| Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.servlet.jsp.tagext.Tag |
getParent, setPageContext, setParent |
Start
public Start()
init
protected void init()
- Initializes the fields of this tag handler.
- Overrides:
init in class ProcessSupport
getTagName
public java.lang.String getTagName()
- Returns the name of the handled tag
- Specified by:
getTagName in class CommonSupport
- Returns:
- the name of the handled tag
getAllowedAncestors
protected java.util.List getAllowedAncestors()
- Returns the list of names of the tags that may contain the tag that
is handled by this class.
- Specified by:
getAllowedAncestors in class CommonSupport
- Returns:
- the list of names of the allowed ancestor tags
or
null if the tag context doesn't matter.
initLoop
protected void initLoop()
throws javax.servlet.jsp.JspException
- Initializes the loop to process start-element and start-document events.
- Overrides:
initLoop in class ProcessSupport
- Throws:
javax.servlet.jsp.JspException - to signal any tag validation error
startLoop
protected boolean startLoop()
throws javax.servlet.jsp.JspException
- Returns
true if the current event is a
StartElement or StartDocument instance.
The element variables are re-exported just in case some other
contained tag modified their values.
- Specified by:
startLoop in class ProcessSupport
- Returns:
true if the event loop should be started
- Throws:
javax.servlet.jsp.JspException - to signal an error
continueLoop
protected boolean continueLoop()
throws javax.servlet.jsp.JspException
- Returns
false since the tag's body needs to be evaluated
only once in order to process the event.
- Specified by:
continueLoop in class ProcessSupport
- Returns:
false
- Throws:
javax.servlet.jsp.JspException - to signal an error