com.sun.grizzly.attributes
Class IndexedAttributeHolder.IndexedAttributeAccessorImpl

java.lang.Object
  extended by com.sun.grizzly.attributes.IndexedAttributeHolder.IndexedAttributeAccessorImpl
All Implemented Interfaces:
IndexedAttributeAccessor
Enclosing class:
IndexedAttributeHolder

protected class IndexedAttributeHolder.IndexedAttributeAccessorImpl
extends Object
implements IndexedAttributeAccessor

IndexedAttributeAccessor implementation.


Constructor Summary
protected IndexedAttributeHolder.IndexedAttributeAccessorImpl()
           
 
Method Summary
 Object getAttribute(int index)
          Internal method for dynamic attribute support.
 void setAttribute(int index, Object value)
          Internal method for dynamic attribute support.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedAttributeHolder.IndexedAttributeAccessorImpl

protected IndexedAttributeHolder.IndexedAttributeAccessorImpl()
Method Detail

getAttribute

public Object getAttribute(int index)
Internal method for dynamic attribute support. Return the value of the attribute by index. If the attribute with such index is not set, set it to the default value and return the default.

Specified by:
getAttribute in interface IndexedAttributeAccessor

setAttribute

public void setAttribute(int index,
                         Object value)
Internal method for dynamic attribute support. Set the attribute with the index to value.

Specified by:
setAttribute in interface IndexedAttributeAccessor


Copyright © 2009 SUN Microsystems. All Rights Reserved.