public class GetAsStringTag
extends javax.servlet.jsp.tagext.SimpleTagSupport
Constructor and Description |
---|
GetAsStringTag() |
Modifier and Type | Method and Description |
---|---|
void |
doTag() |
Object |
getDefaultValue()
Returns the default value, that is evaluated only if
value
is null and the attribute with the associated name is null. |
String |
getDefaultValueRole()
Returns the role to check for the default value.
|
String |
getDefaultValueType()
Returns the default value type.
|
String |
getName()
Returns the name of the attribute.
|
String |
getPreparer()
Returns the preparer name.
|
String |
getRole()
Returns the role to check.
|
Object |
getValue()
Get the value.
|
boolean |
isFlush()
Returns the flush flag.
|
boolean |
isIgnore()
Returns the ignore flag.
|
void |
setDefaultValue(Object defaultValue)
Sets the default value, that is evaluated only if
value is
null and the attribute with the associated name is null. |
void |
setDefaultValueRole(String defaultValueRole)
Sets the role to check for the default value.
|
void |
setDefaultValueType(String defaultValueType)
Sets the default value type.
|
void |
setFlush(boolean flush)
Sets the flush flag.
|
void |
setIgnore(boolean ignore)
Sets the ignore flag.
|
void |
setName(String value)
Sets the name of the attribute.
|
void |
setPreparer(String preparer)
Sets the preparer name.
|
void |
setRole(String role)
Sets the role to check.
|
void |
setValue(Object value)
Set the value.
|
public void setName(String value)
value
- The name of the attribute.public String getName()
public Object getValue()
public void setValue(Object value)
value
- The new valuepublic Object getDefaultValue()
value
is null and the attribute with the associated name
is null.public void setDefaultValue(Object defaultValue)
value
is
null and the attribute with the associated name
is null.defaultValue
- The default value to set.public String getDefaultValueType()
getDefaultValue()
is a string.public void setDefaultValueType(String defaultValueType)
setDefaultValue(Object)
when passing a string.defaultValueType
- The default value type.public String getDefaultValueRole()
public void setDefaultValueRole(String defaultValueRole)
defaultValueRole
- The default value role.public String getRole()
public void setRole(String role)
role
- The role to check.public String getPreparer()
public void setPreparer(String preparer)
preparer
- The preparer name.public boolean isFlush()
true
, current page out stream
is flushed after insertion.public void setFlush(boolean flush)
true
, current page out stream
is flushed after insertion.flush
- The flush flag.public boolean isIgnore()
public void setIgnore(boolean ignore)
ignore
- The ignore flag.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 © 2017. All rights reserved.