|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.SimpleTagSupport info.magnolia.templating.jsp.cms.AbstractTag<C>
C
- the templating element the tag is operating onpublic abstract class AbstractTag<C extends TemplatingElement>
Base class for jsp tags.
Constructor Summary | |
---|---|
AbstractTag()
|
Method Summary | |
---|---|
protected C |
createTemplatingElement()
|
protected void |
doBody()
|
void |
doTag()
|
protected Class<C> |
getTemplatingElementClass()
|
protected void |
initContentElement(AbstractContentTemplatingElement element)
Init attributes common to all AbstractContentTemplatingElement . |
protected Map<String,Object> |
mandatoryMapConvertor(Object attrValue,
String attributeName)
Currently only support Map attrValue. |
protected Map<String,Object> |
mapConvertor(Object attrValue,
String attributeName,
boolean isMandatory)
Currently only support Map attrValue. |
protected abstract void |
prepareTemplatingElement(C templatingElement)
Implementations of this method should prepare the TemplatingElement with the known parameters. |
void |
setContent(Object content)
|
void |
setPath(String path)
|
void |
setUuid(String uuid)
|
void |
setWorkspace(String workspace)
|
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractTag()
Method Detail |
---|
@Attribute(required=false, rtexprvalue=true) public void setContent(Object content)
@Attribute(required=false, rtexprvalue=true) public void setWorkspace(String workspace)
@Attribute(required=false, rtexprvalue=true) public void setUuid(String uuid)
@Attribute(required=false, rtexprvalue=true) public void setPath(String path)
public void doTag() throws javax.servlet.jsp.JspException, IOException
doTag
in interface javax.servlet.jsp.tagext.SimpleTag
doTag
in class javax.servlet.jsp.tagext.SimpleTagSupport
javax.servlet.jsp.JspException
IOException
protected void doBody() throws javax.servlet.jsp.JspException, IOException
javax.servlet.jsp.JspException
IOException
protected abstract void prepareTemplatingElement(C templatingElement) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected void initContentElement(AbstractContentTemplatingElement element)
AbstractContentTemplatingElement
.
protected C createTemplatingElement()
protected Class<C> getTemplatingElementClass()
protected Map<String,Object> mapConvertor(Object attrValue, String attributeName, boolean isMandatory) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
protected Map<String,Object> mandatoryMapConvertor(Object attrValue, String attributeName) throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |