|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.jsp.tagext.SimpleTagSupport org.apache.tiles.jsp.taglib.InsertAttributeTag
public class InsertAttributeTag
This is the tag handler for <tiles:attribute>, which defines an attribute. If the attribute value is a template or a definition, its attributes and its template can be overridden.
Constructor Summary | |
---|---|
InsertAttributeTag()
|
Method Summary | |
---|---|
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. |
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport |
---|
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InsertAttributeTag()
Method Detail |
---|
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 JspException, IOException
doTag
in interface SimpleTag
doTag
in class SimpleTagSupport
JspException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |