intarsys PDF library API

de.intarsys.tools.attribute
Class AttributeSupport

java.lang.Object
  extended by de.intarsys.tools.attribute.AttributeSupport
All Implemented Interfaces:
IAttributeSupport

public class AttributeSupport
extends Object
implements IAttributeSupport

A common implementation of IAttributeSupport for quick linking in a host object.

This is not thread safe.


Constructor Summary
AttributeSupport()
           
 
Method Summary
 Object getAttribute(Object key)
          get an attribute from the context
 Object removeAttribute(Object key)
          remove an attribute in the context
 Object setAttribute(Object key, Object o)
          set the value of an attribute in the context
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeSupport

public AttributeSupport()
Method Detail

getAttribute

public Object getAttribute(Object key)
Description copied from interface: IAttributeSupport
get an attribute from the context

Specified by:
getAttribute in interface IAttributeSupport
Parameters:
key - the name of the attribute to get
Returns:
The value of the attribute to get

removeAttribute

public Object removeAttribute(Object key)
Description copied from interface: IAttributeSupport
remove an attribute in the context

Specified by:
removeAttribute in interface IAttributeSupport
Parameters:
key - the name of the attribute to remove
Returns:
The previously associated object for key

setAttribute

public Object setAttribute(Object key,
                           Object o)
Description copied from interface: IAttributeSupport
set the value of an attribute in the context

Specified by:
setAttribute in interface IAttributeSupport
Parameters:
key - the name of the attribute to set
o - the new value the attribute
Returns:
The previously associated object for key

intarsys PDF library API

Copyright © 2006 intarsys consulting GmbH. All Rights Reserved.