|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.scopes.impl.ContextImpl
public class ContextImpl
Simple implementation for a context.
| Field Summary | |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
name2attribute
Simple map to store the attributes of the context. |
| Constructor Summary | |
|---|---|
ContextImpl()
Constructor. |
|
| Method Summary | |
|---|---|
java.lang.Object |
getAttribute(java.lang.String name)
Returns a stored attribute. |
java.util.Set<java.lang.String> |
getAttributeNames()
Returns a set of attribute names. |
void |
removeAttribute(java.lang.String name)
Removes an attribute. |
void |
setAttribute(java.lang.String name,
java.lang.Object object)
Sets an attribute. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.Map<java.lang.String,java.lang.Object> name2attribute
| Constructor Detail |
|---|
public ContextImpl()
| Method Detail |
|---|
public java.lang.Object getAttribute(java.lang.String name)
Context
getAttribute in interface Contextname - The name of the attribute.
public java.util.Set<java.lang.String> getAttributeNames()
Context
getAttributeNames in interface Context
public void setAttribute(java.lang.String name,
java.lang.Object object)
Context
setAttribute in interface Contextname - The name of the attribute.object - The attribute.public void removeAttribute(java.lang.String name)
Context
removeAttribute in interface Contextname - The attribute to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||