|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Env
Env extends ReadEnv
to allow add/changed/removing attributes. It also
allows getting/setting transient attributes.
Method Summary | |
---|---|
Object |
getTransientAttribute(String name)
Returns the value associated with the given named transient attribute. |
Iterable<String> |
getTransientAttributeNames()
Returns an Iterable of transient attribute names. |
boolean |
hasTransientAttribute(String name)
Returns true if this transient attribute exists in the environment and false otherwise. |
void |
importEnv(Env env)
Copy all attributes from given env, including transient attributes. |
void |
removeAttribute(String name)
Unsets any attribute with the given name. |
void |
removeTransientAttribute(String name)
Remove the given attribute from the environment. |
void |
setAttribute(String name,
Object value)
Sets the attribute of the given name to the given value. |
void |
setAttribute(String name,
String value)
Sets the attribute of the given name to the given string value. |
void |
setTransientAttribute(String name,
Object value)
Set a transient attribute of the environment. |
Methods inherited from interface com.googlecode.sarasvati.env.ReadEnv |
---|
getAttribute, getAttribute, getAttribute, getAttributeNames, hasAttribute |
Method Detail |
---|
void setAttribute(String name, String value)
name
- The name of the attribute to set.value
- The value to set the attribute tovoid setAttribute(String name, Object value)
name
- The name of the attribute to set.value
- The value to set the attribute tovoid removeAttribute(String name)
name
- The name of the attribute to removevoid setTransientAttribute(String name, Object value)
GraphProcess
or
NodeToken
instance is in memory. In other words, these
attributes will not be persisted to whatever the backing store
is.
name
- The name of the attributevalue
- The value of the attributeboolean hasTransientAttribute(String name)
name
- The transient attribute name
Object getTransientAttribute(String name)
name
- The attribute name
void removeTransientAttribute(String name)
name
- The attribute nameIterable<String> getTransientAttributeNames()
Iterable
of transient attribute names.
Iterable
of transient attribute namesvoid importEnv(Env env)
env
- The environment to copy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |