org.apache.struts.tiles

Class UntypedAttribute

public class UntypedAttribute extends Object implements AttributeDefinition

Common implementation of attribute definition.
Field Summary
protected Stringrole
Role associated to this attribute.
protected Objectvalue
Constructor Summary
UntypedAttribute(Object value)
Constructor.
UntypedAttribute(Object value, String role)
Constructor.
Method Summary
StringgetRole()
Get role.
ObjectgetValue()
Get value.
voidsetRole(String role)
Set role.
voidsetValue(Object value)
Set value.
StringtoString()
Get String representation of this object.

Field Detail

role

protected String role
Role associated to this attribute.

value

protected Object value

Constructor Detail

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 Detail

getRole

public String getRole()
Get role.

getValue

public Object getValue()
Get value.

setRole

public void setRole(String role)
Set role.

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-2008 - The Apache Software Foundation