|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.grizzly.attributes.NamedAttributeHolder
public class NamedAttributeHolder
AttributeHolder implementation, which doesn't support indexed access
to Attributes.
AttributeHolder,
IndexedAttributeHolder| Field Summary | |
|---|---|
protected DefaultAttributeBuilder |
attributeBuilder
|
protected Map<String,Object> |
attributesMap
|
| Constructor Summary | |
|---|---|
NamedAttributeHolder(AttributeBuilder attributeBuilder)
|
|
| Method Summary | |
|---|---|
void |
clear()
Clear all the attributes. |
Object |
getAttribute(String name)
Return an object based on a name. |
AttributeBuilder |
getAttributeBuilder()
Get AttributeBuilder, associated with this holder |
Set<String> |
getAttributeNames()
Return a Set of attribute names. |
IndexedAttributeAccessor |
getIndexedAttributeAccessor()
Always returns null, as NamedAttributeHolder doesn't support indexing. |
Object |
removeAttribute(String name)
Remove a name/value object. |
void |
setAttribute(String name,
Object value)
Set a name/value object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Map<String,Object> attributesMap
protected DefaultAttributeBuilder attributeBuilder
| Constructor Detail |
|---|
public NamedAttributeHolder(AttributeBuilder attributeBuilder)
| Method Detail |
|---|
public Object getAttribute(String name)
getAttribute in interface AttributeHoldername - - name of an attribute
public void setAttribute(String name,
Object value)
setAttribute in interface AttributeHoldername - - name of an attributevalue - - value of named attributepublic Object removeAttribute(String name)
removeAttribute in interface AttributeHoldername - - name of an attribute
public Set<String> getAttributeNames()
Set of attribute names.
getAttributeNames in interface AttributeHolderSet of attribute namespublic void clear()
clear in interface AttributeHolderpublic AttributeBuilder getAttributeBuilder()
getAttributeBuilder in interface AttributeHolderpublic IndexedAttributeAccessor getIndexedAttributeAccessor()
getIndexedAttributeAccessor in interface AttributeHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||