public class GetAsStringTag
extends javax.servlet.jsp.tagext.SimpleTagSupport
Render 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 and Description |
---|
GetAsStringTag() |
Modifier and Type | Method and Description |
---|---|
void |
doTag() |
Object |
getDefaultValue()
Getter for defaultValue property.
|
String |
getDefaultValueRole()
Getter for defaultValueRole property.
|
String |
getDefaultValueType()
Getter for defaultValueType property.
|
String |
getName()
Getter for name property.
|
String |
getPreparer()
Getter for preparer property.
|
String |
getRole()
Getter for role property.
|
Attribute |
getValue()
Getter for value property.
|
boolean |
isIgnore()
Getter for ignore property.
|
void |
setDefaultValue(Object defaultValue)
Setter for defaultValue property.
|
void |
setDefaultValueRole(String defaultValueRole)
Setter for defaultValueRole property.
|
void |
setDefaultValueType(String defaultValueType)
Setter for defaultValueType property.
|
void |
setIgnore(boolean ignore)
Setter for ignore property.
|
void |
setName(String name)
Setter for name property.
|
void |
setPreparer(String preparer)
Setter for preparer property.
|
void |
setRole(String role)
Setter for role property.
|
void |
setValue(Attribute value)
Setter for value property.
|
public boolean isIgnore()
true
, if an exception happens during
rendering, of if the attribute is null, the problem will be ignored.public void setIgnore(boolean ignore)
ignore
- If true
, if an exception happens during
rendering, of if the attribute is null, the problem will be ignored.public String getPreparer()
public void setPreparer(String preparer)
preparer
- The preparer to invoke before rendering the attribute.public String getRole()
public void setRole(String role)
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.public Object getDefaultValue()
public void setDefaultValue(Object defaultValue)
defaultValue
- The default value of the attribute. To use only if
the attribute was not computed.public String getDefaultValueRole()
public void setDefaultValueRole(String defaultValueRole)
defaultValueRole
- The default comma-separated list of roles. To use
only if the attribute was not computed.public String getDefaultValueType()
public void setDefaultValueType(String defaultValueType)
defaultValueType
- The default type of the attribute. To use only if
the attribute was not computed.public String getName()
public void setName(String name)
name
- The name of the attribute.public Attribute getValue()
public void setValue(Attribute value)
value
- The attribute to use immediately, if not null.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
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.