|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tiles.Attribute
public class Attribute
Common implementation of attribute definition.
Field Summary | |
---|---|
static java.lang.String |
DEFINITION
Attribute of type definition. |
protected java.lang.String |
role
Role associated to this attribute. |
static java.lang.String |
STRING
Attribute of type string. |
static java.lang.String |
TEMPLATE
Attribute of type template. |
protected java.lang.Object |
value
The value of the attribute. |
Constructor Summary | |
---|---|
Attribute()
Constructor. |
|
Attribute(Attribute attribute)
Copy constructor. |
|
Attribute(java.lang.Object value)
Constructor. |
|
Attribute(java.lang.Object value,
java.lang.String role)
Constructor. |
|
Attribute(java.lang.Object value,
java.lang.String role,
java.lang.String type)
Constructor. |
|
Attribute(java.lang.String name,
java.lang.Object value)
Constructor. |
|
Attribute(java.lang.String name,
java.lang.Object value,
java.lang.String role,
java.lang.String type)
Constructor. |
Method Summary | |
---|---|
java.util.Map<java.lang.String,Attribute> |
getAttributes()
Returns the underlying attributes for this attribute. |
java.lang.String |
getName()
Returns the name of the attribute. |
java.lang.String |
getRole()
Get role. |
java.lang.String |
getType()
Returns the type of this attribute. |
java.lang.Object |
getValue()
Get value. |
void |
setAttributes(java.util.Map<java.lang.String,Attribute> attributes)
Sets the underlying attributes for this attribute. |
void |
setBody(java.lang.String body)
Sets the body of this attribute. |
void |
setName(java.lang.String name)
Sets the name of the attribute. |
void |
setRole(java.lang.String role)
Set role. |
void |
setType(java.lang.String type)
Sets the type of this attribute. |
void |
setValue(java.lang.Object value)
Set value. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFINITION
public static final java.lang.String TEMPLATE
public static final java.lang.String STRING
protected java.lang.String role
protected java.lang.Object value
Constructor Detail |
---|
public Attribute()
public Attribute(java.lang.Object value)
value
- Object to store.public Attribute(Attribute attribute)
attribute
- The attribute to copy from.public Attribute(java.lang.String name, java.lang.Object value)
name
- name of the attributevalue
- Object to store.public Attribute(java.lang.Object value, java.lang.String role)
value
- Object to store.role
- Asociated role.public Attribute(java.lang.Object value, java.lang.String role, java.lang.String type)
value
- Object to store.role
- Asociated role.type
- Attribute type.public Attribute(java.lang.String name, java.lang.Object value, java.lang.String role, java.lang.String type)
name
- name of the attributevalue
- Object to store.role
- Asociated role.type
- Attribute type.Method Detail |
---|
public java.lang.String getRole()
public void setRole(java.lang.String role)
role
- Associated role.public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- New value.public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getType()
string
,
template
, definition
.public void setType(java.lang.String type)
type
- The attribute type. It can be string
,
template
, definition
.public java.lang.String getName()
null
, but in
this case it should be used as an element of
ListAttribute
public void setName(java.lang.String name)
name
- The name of the attribute. It can be null
,
but in this case it should be used as an element of
ListAttribute
public java.util.Map<java.lang.String,Attribute> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,Attribute> attributes)
attributes
- The attribute map.public void setBody(java.lang.String body)
body
- The attribute body.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |