|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.jelly.TagSupport net.sf.jameleon.LocationAwareTagSupport net.sf.jameleon.JameleonTagSupport
public abstract class JameleonTagSupport
JameleonTagSupport
is an implementation of DynaTag. This tag
throws the variable name as the XML attribute into the context. It then
attempts to call to corresponding set method. There is currently no checking
on whether the set method was called or not. If it's there, then it gets
called. Calling the set method is mostly for backward compatability. However,
it can be used for set methods that need to do more than put the variable in the
context.
Currently, this class is only used by FunctionTag. It was intended to be the base class for all Jameleon tags.
Field Summary | |
---|---|
protected Map |
attributes
A map of class attributes and their corresponding types. |
protected AttributeBroker |
broker
Used to transfer context variables to instance variables. |
protected List |
contextVars
A list of variable names that were stored in the context. |
protected FunctionalPoint |
fp
Represents this tag's attributes |
protected List |
unsupportedAttributes
|
Fields inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
columnNumber, elementTagName, lineNumber, scriptFileName |
Fields inherited from class org.apache.commons.jelly.TagSupport |
---|
body, context, hasTrimmed, parent, shouldTrim |
Constructor Summary | |
---|---|
JameleonTagSupport()
|
Method Summary | |
---|---|
protected void |
cleanVariablesInContext()
|
protected Map |
createAttributes()
Simply returns the context for this tag |
void |
describeAttributes(AttributeBroker broker)
Registers all instance variables and key values in a JellyContext. |
AttributeBroker |
getAttributeBroker()
|
protected Map |
getAttributes()
Helper method which allows derived tags to access the attributes associated with this tag |
Class |
getAttributeType(String name)
|
protected Map |
getClassAttributes()
Gets the attributes or fields of the tag |
FunctionalPoint |
getFunctionalPoint()
|
List |
getUnsupportedAttributes()
|
FunctionalPoint |
loadFunctionalPoint()
|
protected void |
resetFunctionalPoint()
|
void |
setAttribute(String name,
Object value)
Sets an attribute value of this tag before the tag is invoked |
protected void |
setVariableInContext(String name,
Object value)
|
protected void |
testForUnsupportedAttributesCaught()
|
Methods inherited from class net.sf.jameleon.LocationAwareTagSupport |
---|
getColumnNumber, getElementName, getFileName, getLineNumber, setColumnNumber, setElementName, setFileName, setLineNumber |
Methods inherited from class org.apache.commons.jelly.TagSupport |
---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isEscapeText, isTrim, setBody, setContext, setEscapeText, setParent, setTrim, trimBody |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.commons.jelly.Tag |
---|
doTag, getBody, getContext, getParent, invokeBody, setBody, setContext, setParent |
Field Detail |
---|
protected Map attributes
protected List contextVars
protected AttributeBroker broker
protected FunctionalPoint fp
protected List unsupportedAttributes
Constructor Detail |
---|
public JameleonTagSupport()
Method Detail |
---|
public FunctionalPoint loadFunctionalPoint()
public List getUnsupportedAttributes()
protected void testForUnsupportedAttributesCaught()
public void setAttribute(String name, Object value)
setAttribute
in interface DynaTag
protected void setVariableInContext(String name, Object value)
protected void cleanVariablesInContext()
protected Map getAttributes()
public AttributeBroker getAttributeBroker()
protected Map createAttributes()
protected Map getClassAttributes()
public Class getAttributeType(String name) throws JellyTagException
getAttributeType
in interface DynaTag
JellyTagException
protected void resetFunctionalPoint()
public FunctionalPoint getFunctionalPoint()
public void describeAttributes(AttributeBroker broker)
Attributable
AttributeBroker
.
describeAttributes
in interface Attributable
broker
- - The AttributeBroker
which will transfer
the values to instance variables.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |