|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.opencms.jsp.CmsJspTagContentCheck
public class CmsJspTagContentCheck
Used to check the availablity of an XML content item for conditional display.
| Field Summary |
|---|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
id, pageContext |
| 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 | |
|---|---|
CmsJspTagContentCheck()
|
|
| Method Summary | |
|---|---|
static boolean |
contentCheckTagAction(String elementList,
String prefix,
boolean checkall,
boolean checknone,
I_CmsXmlDocument content,
Locale locale)
Internal action method to check the elements from the provided XML content item. |
int |
doEndTag()
|
int |
doStartTag()
|
String |
getIfexists()
Returns the list of elements to check. |
String |
getIfexistsall()
Returns the list of elements to check. |
String |
getIfexistsnone()
Returns the list of elements to check. |
String |
getIfexistsone()
Returns the list of elements to check. |
String |
getLocale()
Returns the locale used for checking. |
void |
release()
|
void |
setIfexists(String elementList)
Sets the list of elements to check for. |
void |
setIfexistsall(String elementList)
Sets the list of elements to check for. |
void |
setIfexistsnone(String elementList)
Sets the list of elements to check for. |
void |
setIfexistsone(String elementList)
Sets the list of elements to check for. |
void |
setLocale(String locale)
Sets the locale used for checking. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, 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 |
| Constructor Detail |
|---|
public CmsJspTagContentCheck()
| Method Detail |
|---|
public static boolean contentCheckTagAction(String elementList,
String prefix,
boolean checkall,
boolean checknone,
I_CmsXmlDocument content,
Locale locale)
elementList - the list of elements to check forprefix - the Xpath prefix to append the elements to (in case of nested schemas)checkall - flag to indicate that all elements should be checkedchecknone - flag to indicate that the check is done for nonexisting elementscontent - the XML content document to check the elements fromlocale - the locale to check the element for
public int doEndTag()
doEndTag in interface TagdoEndTag in class TagSupportTag.doEndTag()
public int doStartTag()
throws JspException
doStartTag in interface TagdoStartTag in class TagSupportJspExceptionTag.doStartTag()public String getIfexists()
public String getIfexistsall()
public String getIfexistsnone()
public String getIfexistsone()
public String getLocale()
public void release()
release in interface Tagrelease in class TagSupportTag.release()public void setIfexists(String elementList)
elementList - the list of elements to check forpublic void setIfexistsall(String elementList)
elementList - the list of elements to check forpublic void setIfexistsnone(String elementList)
elementList - the list of elements to check forpublic void setIfexistsone(String elementList)
elementList - the list of elements to check forpublic void setLocale(String locale)
locale - the locale to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||