Package org.opencms.jsp
Class CmsJspTagIncludeTEI
- java.lang.Object
-
- javax.servlet.jsp.tagext.TagExtraInfo
-
- org.opencms.jsp.CmsJspTagIncludeTEI
-
public class CmsJspTagIncludeTEI extends javax.servlet.jsp.tagext.TagExtraInfo
This is a TagExtraInfo evaluation class that checks the attibutes of the<cms:include />
tag.- Since:
- 6.0.0
-
-
Constructor Summary
Constructors Constructor Description CmsJspTagIncludeTEI()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isSpecified(javax.servlet.jsp.tagext.TagData data, java.lang.String attributeName)
Returns true if the given attribute name is specified, false otherwise.boolean
isValid(javax.servlet.jsp.tagext.TagData data)
Checks the validity of the<cms:include />
attributes.
-
-
-
Constructor Detail
-
CmsJspTagIncludeTEI
public CmsJspTagIncludeTEI()
-
-
Method Detail
-
isSpecified
public static boolean isSpecified(javax.servlet.jsp.tagext.TagData data, java.lang.String attributeName)
Returns true if the given attribute name is specified, false otherwise.- Parameters:
data
- the tag dataattributeName
- the attribute name- Returns:
- true if the given attribute name is specified, false otherwise
-
isValid
public boolean isValid(javax.servlet.jsp.tagext.TagData data)
Checks the validity of the<cms:include />
attributes.The logic used is:
if (hasFile && (hasSuffix || hasProperty || hasAttribute)) return false; if (hasProperty && hasAttribute) return false; if (hasSuffix && !(hasProperty || hasAttribute)) return false;
- Overrides:
isValid
in classjavax.servlet.jsp.tagext.TagExtraInfo
- Parameters:
data
- the tag data- Returns:
- true if attributes are valid, false otherwise
-
-