public class CmsJspTagContentInfo extends CmsJspScopedVarBodyTagSuport implements I_CmsMacroResolver
MACRO_DELIMITER, MACRO_DELIMITER_OLD, MACRO_END, MACRO_END_OLD, MACRO_START, MACRO_START_OLD
构造器和说明 |
---|
CmsJspTagContentInfo() |
限定符和类型 | 方法和说明 |
---|---|
int |
doEndTag() |
int |
doStartTag() |
java.lang.String |
getMacroValue(java.lang.String macro)
Resolves a single macro to the macro value, returns
null if the macro could not be resolved. |
java.lang.String |
getValue()
Returns the name of the content info's value that should be printed out.
|
boolean |
isKeepEmptyMacros()
Returns
true if macros that could not be resolved are kept "as is" in the
input String, false if they are replaced by an empty String. |
void |
release() |
java.lang.String |
resolveMacros(java.lang.String input)
Resolves all macros in the input, replacing them with the macro values.
|
void |
setValue(java.lang.String value)
Sets the name of the content info's value that should be printed out.
|
protected void |
storeContentInfoBean(CmsJspTagResourceLoad container)
Stores the container's content info bean in the page context.
|
getScope, getScopeAsInt, getScopeAsString, getScopeInt, getVar, isScopeVarSet, setScope, setVar, storeAttribute, storeAttribute
doAfterBody, doInitBody, getBodyContent, getPreviousOut, setBodyContent
findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
public int doEndTag()
doEndTag
在接口中 javax.servlet.jsp.tagext.Tag
doEndTag
在类中 javax.servlet.jsp.tagext.BodyTagSupport
Tag.doEndTag()
public int doStartTag() throws javax.servlet.jsp.JspException
doStartTag
在接口中 javax.servlet.jsp.tagext.Tag
doStartTag
在类中 javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
Tag.doStartTag()
public java.lang.String getMacroValue(java.lang.String macro)
I_CmsMacroResolver
null
if the macro could not be resolved.getMacroValue
在接口中 I_CmsMacroResolver
macro
- the macro to resolvenull
if the macro could not be resolvedI_CmsMacroResolver.getMacroValue(java.lang.String)
public java.lang.String getValue()
public boolean isKeepEmptyMacros()
I_CmsMacroResolver
true
if macros that could not be resolved are kept "as is" in the
input String, false
if they are replaced by an empty String.isKeepEmptyMacros
在接口中 I_CmsMacroResolver
true
if macros that could not be resolved are kept "as is" in the
input String, false
if they are replaced by an empty StringI_CmsMacroResolver.isKeepEmptyMacros()
public void release()
release
在接口中 javax.servlet.jsp.tagext.Tag
release
在类中 CmsJspScopedVarBodyTagSuport
Tag.release()
public java.lang.String resolveMacros(java.lang.String input)
I_CmsMacroResolver
The flag I_CmsMacroResolver.isKeepEmptyMacros()
controls how to deal with
macros found in the input that can not be resolved.
resolveMacros
在接口中 I_CmsMacroResolver
input
- the input to resolve the macros inI_CmsMacroResolver.resolveMacros(java.lang.String)
public void setValue(java.lang.String value)
value
- the name of the content info's value that should be printed outprotected void storeContentInfoBean(CmsJspTagResourceLoad container)
container
- the parent container