public class NodeProviderHelper extends Object implements NodeProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
_NODE |
(package private) boolean |
checked |
static String |
STACK_ATTRIBUTE |
| Constructor and Description |
|---|
NodeProviderHelper(ContextReferrerTag thisTag) |
| Modifier and Type | Method and Description |
|---|---|
int |
doAfterBody()
Does everything needed on the afterbody tag of every
NodeProvider.
|
int |
doEndTag() |
void |
doFinally() |
void |
fillVars()
Fill the jsp and context vars
|
Query |
getGeneratingQuery()
Returns a query which (a.o) results this Node.
|
String |
getId() |
Node |
getNodeVar()
For use by children, they can find the current 'node' belonging
to this tag.
|
(package private) static String |
getSimpleReturnValueName(String prefix,
String fieldName)
Generates the variable-name for a field.
|
void |
setCommitonclose(String c)
Whether the node must be commited after the body of the tag if any changes occured
|
void |
setGeneratingQuery(Query q) |
void |
setJspvar(String jv)
NodeProviders support the jspvar attribute (giving a Node jsp var object).
|
void |
setNodeVar(Node node)
Children can also directly access the node member, but the
prefered method is to treat this variable as much as possible
as private, and use this.
|
public static final String STACK_ATTRIBUTE
public static final String _NODE
boolean checked
public NodeProviderHelper(ContextReferrerTag thisTag)
public void setJspvar(String jv)
NodeProvidersetJspvar in interface NodeProviderpublic void setCommitonclose(String c) throws javax.servlet.jsp.JspTagException
NodeProvidersetCommitonclose in interface NodeProviderjavax.servlet.jsp.JspTagExceptionpublic Node getNodeVar()
getNodeVar in interface NodeProviderpublic void setNodeVar(Node node)
public void setGeneratingQuery(Query q)
public Query getGeneratingQuery() throws javax.servlet.jsp.JspTagException
NodeProvidergetGeneratingQuery in interface NodeProviderjavax.servlet.jsp.JspTagExceptionpublic String getId()
getId in interface TagIdentifierpublic void fillVars()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionstatic String getSimpleReturnValueName(String prefix, String fieldName)
prefix - A prefix to use. Can be null.fieldName - The name of the field.public int doAfterBody()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic int doEndTag()
throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagExceptionpublic void doFinally()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}