railo.runtime.tag
Class CFTag

java.lang.Object
  extended by railo.runtime.ext.tag.TagImpl
      extended by railo.runtime.ext.tag.BodyTagImpl
          extended by railo.runtime.ext.tag.BodyTagTryCatchFinallyImpl
              extended by railo.runtime.tag.CFTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally, AppendixTag, DynamicAttributes
Direct Known Subclasses:
CFImportTag, CFTagCore, Module

public class CFTag
extends BodyTagTryCatchFinallyImpl
implements DynamicAttributes, AppendixTag

Creates a CFML Custom Tag


Field Summary
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
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
 
Constructor Summary
CFTag()
          constructor for the tag class
 
Method Summary
 void _doCFCCatch(Throwable t, String source)
           
 int doAfterBody()
           
 void doCatch(Throwable t)
           
 int doEndTag()
           
 void doInitBody()
           
 int doStartTag()
           
 String getAppendix()
           
 Struct getAttributesScope()
           
 Struct getCallerScope()
           
 Component getComponent()
           
 Struct getThis()
           
 Struct getVariablesScope()
           
 void hasBody(boolean hasBody)
          sets if tag has a body or not
 InitFile initFile(PageContext pageContext)
           
 boolean isCFCBasedCustomTag()
           
 void release()
           
 void setAppendix(String appendix)
          sets the appendix of the class
 void setDynamicAttribute(String uri, Collection.Key name, Object value)
           
 void setDynamicAttribute(String uri, String name, Object value)
           
 
Methods inherited from class railo.runtime.ext.tag.BodyTagTryCatchFinallyImpl
doFinally
 
Methods inherited from class railo.runtime.ext.tag.BodyTagImpl
setBodyContent
 
Methods inherited from class railo.runtime.ext.tag.TagImpl
getParent, required, required, required, required, setPageContext, setPageContext, setParent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

CFTag

public CFTag()
constructor for the tag class

Method Detail

setDynamicAttribute

public void setDynamicAttribute(String uri,
                                String name,
                                Object value)
Specified by:
setDynamicAttribute in interface DynamicAttributes
Parameters:
uri - the namespace of the attribute, or null if in the default namespace.
name - the name of the attribute being set.
value - the value of the attribute

setDynamicAttribute

public void setDynamicAttribute(String uri,
                                Collection.Key name,
                                Object value)
Specified by:
setDynamicAttribute in interface DynamicAttributes
Parameters:
uri - the namespace of the attribute, or null if in the default namespace.
name - the name of the attribute being set.
value - the value of the attribute

release

public void release()
Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class BodyTagImpl

setAppendix

public void setAppendix(String appendix)
sets the appendix of the class

Specified by:
setAppendix in interface AppendixTag
Parameters:
appendix -

doStartTag

public int doStartTag()
               throws PageException
Specified by:
doStartTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doStartTag in class TagImpl
Throws:
PageException

doEndTag

public int doEndTag()
Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class TagImpl

doInitBody

public void doInitBody()
Specified by:
doInitBody in interface javax.servlet.jsp.tagext.BodyTag
Overrides:
doInitBody in class BodyTagImpl

doAfterBody

public int doAfterBody()
                throws PageException
Specified by:
doAfterBody in interface javax.servlet.jsp.tagext.IterationTag
Overrides:
doAfterBody in class BodyTagImpl
Throws:
PageException

doCatch

public void doCatch(Throwable t)
             throws Throwable
Specified by:
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinally
Overrides:
doCatch in class BodyTagTryCatchFinallyImpl
Throws:
Throwable

initFile

public InitFile initFile(PageContext pageContext)
                  throws PageException
Throws:
PageException

_doCFCCatch

public void _doCFCCatch(Throwable t,
                        String source)
                 throws PageException
Throws:
PageException

hasBody

public void hasBody(boolean hasBody)
sets if tag has a body or not

Parameters:
hasBody -

getAppendix

public String getAppendix()
Specified by:
getAppendix in interface AppendixTag
Returns:
Returns the appendix.

getThis

public Struct getThis()
Returns:
return thistag

getCallerScope

public Struct getCallerScope()
Returns:
return thistag

getAttributesScope

public Struct getAttributesScope()
Returns:
return thistag

getVariablesScope

public Struct getVariablesScope()
Returns:
the ctVariablesScope

getComponent

public Component getComponent()
Returns:
the cfc

isCFCBasedCustomTag

public boolean isCFCBasedCustomTag()


Copyright © 2012 Railo