org.apache.tiles.jsp.taglib
Class PutListAttributeTag

java.lang.Object
  extended by SimpleTagSupport
      extended by org.apache.tiles.jsp.taglib.PutListAttributeTag

public class PutListAttributeTag
extends SimpleTagSupport

PutList tag implementation.

Since:
Tiles 1.0
Version:
$Rev: 783101 $ $Date: 2009-06-09 21:27:26 +0200 (mar, 09 giu 2009) $

Constructor Summary
PutListAttributeTag()
           
 
Method Summary
 void doTag()
          
 boolean getInherit()
          If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here.
 java.lang.String getName()
          Returns the name of the attribute.
 java.lang.String getRole()
          Returns the role to check.
 java.lang.String getType()
           Returns content type: string, template or definition.
 boolean isCascade()
          Checks if the attribute should be cascaded to nested definitions.
 void setCascade(boolean cascade)
          Sets the property that tells if the attribute should be cascaded to nested definitions.
 void setInherit(boolean inherit)
          If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here.
 void setName(java.lang.String name)
          Sets the name of the attribute.
 void setRole(java.lang.String role)
          Sets the role to check.
 void setType(java.lang.String type)
           Sets content type: string, template or definition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PutListAttributeTag

public PutListAttributeTag()
Method Detail

getName

public java.lang.String getName()
Returns the name of the attribute.

Returns:
The name of the attribute.

setName

public void setName(java.lang.String name)
Sets the name of the attribute.

Parameters:
name - The name of the attribute.

isCascade

public boolean isCascade()
Checks if the attribute should be cascaded to nested definitions.

Returns:
true if the attribute will be cascaded.
Since:
2.1.0

setCascade

public void setCascade(boolean cascade)
Sets the property that tells if the attribute should be cascaded to nested definitions.

Parameters:
cascade - true if the attribute will be cascaded.
Since:
2.1.0

getRole

public java.lang.String getRole()
Returns the role to check. If the user is in the specified role, the tag is taken into account; otherwise, the tag is ignored (skipped).

Returns:
The role to check.

setRole

public void setRole(java.lang.String role)
Sets the role to check. If the user is in the specified role, the tag is taken into account; otherwise, the tag is ignored (skipped).

Parameters:
role - The role to check.

getType

public java.lang.String getType()

Returns content type: string, template or definition.

Returns:
The attribute type.

setType

public void setType(java.lang.String type)

Sets content type: string, template or definition.

Parameters:
type - The attribute type.

setInherit

public void setInherit(boolean inherit)
If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here. By default, it is 'false'

Parameters:
inherit - The "inherit" value.
Since:
2.1.0

getInherit

public boolean getInherit()
If true, the attribute will put the elements of the attribute with the same name of the parent definition before the ones specified here. By default, it is 'false'

Returns:
The "inherit" value.
Since:
2.1.0

doTag

public void doTag()
           throws JspException,
                  java.io.IOException

Throws:
JspException
java.io.IOException