org.apache.struts.tiles

Class UntypedAttribute

Implemented Interfaces:
AttributeDefinition, Serializable
Known Direct Subclasses:
DefinitionAttribute, DefinitionNameAttribute, DirectStringAttribute, PathAttribute

public class UntypedAttribute
extends java.lang.Object
implements AttributeDefinition

Common implementation of attribute definition.

Field Summary

protected String
role
Role associated to this attribute.
protected Object
value

Constructor Summary

UntypedAttribute(Object value)
Constructor.
UntypedAttribute(Object value, String role)
Constructor.

Method Summary

String
getRole()
Get role.
Object
getValue()
Get value.
void
setRole(String role)
Set role.
void
setValue(Object value)
Set value.
String
toString()
Get String representation of this object.

Field Details

role

protected String role
Role associated to this attribute.

value

protected Object value

Constructor Details

UntypedAttribute

public UntypedAttribute(Object value)
Constructor.
Parameters:
value - Object to store.

UntypedAttribute

public UntypedAttribute(Object value,
                        String role)
Constructor.
Parameters:
value - Object to store.
role - Asociated role.

Method Details

getRole

public String getRole()
Get role.

getValue

public Object getValue()
Get value.
Specified by:
getValue in interface AttributeDefinition

setRole

public void setRole(String role)
Set role.
Specified by:
setRole in interface AttributeDefinition
Parameters:
role - Associated role.

setValue

public void setValue(Object value)
Set value.
Parameters:
value - New value.

toString

public String toString()
Get String representation of this object.

Copyright B) 2000-2007 - The Apache Software Foundation