com.bea.content.manager.servlets.attribute
Class AttributeContext

java.lang.Object
  extended by com.bea.content.manager.servlets.attribute.AttributeContext

public class AttributeContext
extends Object


Constructor Summary
AttributeContext()
          Constructs the default AttributeContext
 
Method Summary
 Object getAttribute(String name)
          Returns an attribute by name, or null if the attribute is not set.
 void setAttribute(String name, Object value)
          Sets an attribute by name.
 String toString()
          Retrieve the string version of this AttributeContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeContext

public AttributeContext()
Constructs the default AttributeContext

Method Detail

setAttribute

public void setAttribute(String name,
                         Object value)
Sets an attribute by name.

Parameters
name - The name of the attribute.
value - The value to set.

getAttribute

public Object getAttribute(String name)
Returns an attribute by name, or null if the attribute is not set.

Parameters
name - The name of the attribute to retrieve.
Returns
The value of the attribute, or null if the attribute does does not exist.

toString

public String toString()
Retrieve the string version of this AttributeContext

This method will format the attribute context in the following way: AttributeContext{ key1:value1 key2:value2 key3:value3 . . . }

Overrides:
toString in class Object


Copyright © 2011, Oracle. All rights reserved.