Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.struts.tiles
Class UntypedAttribute

    java.lang.Object
      org.apache.struts.tiles.UntypedAttribute

All Implemented Interfaces:
  Serializable, AttributeDefinition

Direct Known Subclasses:
  DefinitionAttribute, DefinitionNameAttribute, DirectStringAttribute, PathAttribute

    public class UntypedAttribute

extends Object
implements AttributeDefinition

Common implementation of attribute definition.

See Also:
  Serialized Form

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.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

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.

### setRole

    public void setRole(String role)

  Set role.

  Specified by:
    `setRole` in interface `AttributeDefinition`
  Parameters:
    `role` - Associated role.

### getValue

    public Object getValue()

  Get value.

  Specified by:
    `getValue` in interface `AttributeDefinition`

### setValue

    public void setValue(Object value)

  Set value.

  Parameters:
    `value` - New value.

### toString

    public String toString()

  Get String representation of this object.

  Overrides:
    `toString` in class `Object`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2000-2008 Apache Software Foundation. All Rights Reserved.