Package org.apache.tiles.jsp.taglib
Class GetAsStringTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- org.apache.tiles.jsp.taglib.GetAsStringTag
-
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.SimpleTag
public class GetAsStringTag extends javax.servlet.jsp.tagext.SimpleTagSupportRender the value of the specified template attribute to the current Writer
Retrieve the value of the specified template attribute property, and render it to the current Writer as a String. The usual toString() conversions is applied on found value.
-
-
Constructor Summary
Constructors Constructor Description GetAsStringTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoTag()java.lang.ObjectgetDefaultValue()Getter for defaultValue property.java.lang.StringgetDefaultValueRole()Getter for defaultValueRole property.java.lang.StringgetDefaultValueType()Getter for defaultValueType property.java.lang.StringgetName()Getter for name property.java.lang.StringgetPreparer()Getter for preparer property.java.lang.StringgetRole()Getter for role property.AttributegetValue()Getter for value property.booleanisIgnore()Getter for ignore property.voidsetDefaultValue(java.lang.Object defaultValue)Setter for defaultValue property.voidsetDefaultValueRole(java.lang.String defaultValueRole)Setter for defaultValueRole property.voidsetDefaultValueType(java.lang.String defaultValueType)Setter for defaultValueType property.voidsetIgnore(boolean ignore)Setter for ignore property.voidsetName(java.lang.String name)Setter for name property.voidsetPreparer(java.lang.String preparer)Setter for preparer property.voidsetRole(java.lang.String role)Setter for role property.voidsetValue(Attribute value)Setter for value property.
-
-
-
Method Detail
-
isIgnore
public boolean isIgnore()
Getter for ignore property.- Returns:
- If
true, if an exception happens during rendering, of if the attribute is null, the problem will be ignored.
-
setIgnore
public void setIgnore(boolean ignore)
Setter for ignore property.- Parameters:
ignore- Iftrue, if an exception happens during rendering, of if the attribute is null, the problem will be ignored.
-
getPreparer
public java.lang.String getPreparer()
Getter for preparer property.- Returns:
- The preparer to invoke before rendering the attribute.
-
setPreparer
public void setPreparer(java.lang.String preparer)
Setter for preparer property.- Parameters:
preparer- The preparer to invoke before rendering the attribute.
-
getRole
public java.lang.String getRole()
Getter for role property.- Returns:
- A comma-separated list of roles. If present, the attribute will be rendered only if the current user belongs to one of the roles.
-
setRole
public void setRole(java.lang.String role)
Setter for role property.- Parameters:
role- A comma-separated list of roles. If present, the attribute will be rendered only if the current user belongs to one of the roles.
-
getDefaultValue
public java.lang.Object getDefaultValue()
Getter for defaultValue property.- Returns:
- The default value of the attribute. To use only if the attribute was not computed.
-
setDefaultValue
public void setDefaultValue(java.lang.Object defaultValue)
Setter for defaultValue property.- Parameters:
defaultValue- The default value of the attribute. To use only if the attribute was not computed.
-
getDefaultValueRole
public java.lang.String getDefaultValueRole()
Getter for defaultValueRole property.- Returns:
- The default comma-separated list of roles. To use only if the attribute was not computed.
-
setDefaultValueRole
public void setDefaultValueRole(java.lang.String defaultValueRole)
Setter for defaultValueRole property.- Parameters:
defaultValueRole- The default comma-separated list of roles. To use only if the attribute was not computed.
-
getDefaultValueType
public java.lang.String getDefaultValueType()
Getter for defaultValueType property.- Returns:
- The default type of the attribute. To use only if the attribute was not computed.
-
setDefaultValueType
public void setDefaultValueType(java.lang.String defaultValueType)
Setter for defaultValueType property.- Parameters:
defaultValueType- The default type of the attribute. To use only if the attribute was not computed.
-
getName
public java.lang.String getName()
Getter for name property.- Returns:
- The name of the attribute.
-
setName
public void setName(java.lang.String name)
Setter for name property.- Parameters:
name- The name of the attribute.
-
getValue
public Attribute getValue()
Getter for value property.- Returns:
- The attribute to use immediately, if not null.
-
setValue
public void setValue(Attribute value)
Setter for value property.- Parameters:
value- The attribute to use immediately, if not null.
-
doTag
public void doTag() throws javax.servlet.jsp.JspException, java.io.IOException- Specified by:
doTagin interfacejavax.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjavax.servlet.jsp.tagext.SimpleTagSupport- Throws:
javax.servlet.jsp.JspExceptionjava.io.IOException
-
-