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:
  • 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.
    • 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