|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pmease.quickbuild.plugin.report.engine.extensionpoint.ExecutionContext
public class ExecutionContext
Constructor Summary | |
---|---|
ExecutionContext()
Default constructor. |
|
ExecutionContext(ExecutionContext executionContext)
|
|
ExecutionContext(java.util.Map<java.lang.String,java.lang.Object> map)
Initializes a new execution context with the contents of another map. |
Method Summary | ||
---|---|---|
void |
clear()
|
|
void |
clearDirtyFlag()
Clears the dirty flag. |
|
boolean |
containsKey(java.lang.String key)
Indicates whether or not a key is represented in this context. |
|
boolean |
containsValue(java.lang.Object value)
Indicates whether or not a value is represented in this context. |
|
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> |
entrySet()
Returns the entry set containing the contents of this context. |
|
boolean |
equals(java.lang.Object obj)
|
|
java.lang.Object |
get(java.lang.String key)
Getter for the value represented by the provided key. |
|
java.lang.Object |
get(java.lang.String key,
java.lang.Object defaultValue)
|
|
java.util.Map<java.lang.String,java.lang.Object> |
getContextMap()
|
|
java.lang.Object |
getCurrentBean()
|
|
int |
hashCode()
|
|
boolean |
isDirty()
Indicates if context has been changed with a "put" operation since the dirty flag was last cleared. |
|
boolean |
isEmpty()
Indicates whether or not the context is empty. |
|
void |
put(java.lang.String key,
java.lang.Object value)
Add an Object value to the context (must be Serializable). |
|
|
readAndValidate(java.lang.String key,
java.lang.Class<T> type)
Utility method that attempts to take a value represented by a given key and validate it as a member of the specified type. |
|
java.lang.Object |
remove(java.lang.String key)
Removes the mapping for a key from this context if it is present. |
|
void |
setContextMap(java.util.Map<java.lang.String,java.lang.Object> map)
|
|
void |
setCurrentBean(java.lang.Object obj)
|
|
int |
size()
Returns number of entries in the context |
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExecutionContext()
public ExecutionContext(java.util.Map<java.lang.String,java.lang.Object> map)
map
- Initial contents of context.public ExecutionContext(ExecutionContext executionContext)
executionContext
- Method Detail |
---|
public void put(java.lang.String key, java.lang.Object value)
null
value for a given key removes the key.
key
- Key to add to contextvalue
- Value to associate with keypublic boolean isDirty()
public java.lang.Object get(java.lang.String key)
key
- The key to get a value for
public java.lang.Object get(java.lang.String key, java.lang.Object defaultValue)
public <T> T readAndValidate(java.lang.String key, java.lang.Class<T> type)
key
- The key to validate a value fortype
- Class against which value should be validated
Class
public boolean isEmpty()
Map.isEmpty()
public void clearDirtyFlag()
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
Map.entrySet()
public boolean containsKey(java.lang.String key)
key
- Key to check existence for
Map.containsKey(Object)
public java.lang.Object remove(java.lang.String key)
Map.remove(Object)
public boolean containsValue(java.lang.Object value)
value
- Value to check existence for
Map.containsValue(Object)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.Object getCurrentBean()
public void setCurrentBean(java.lang.Object obj)
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int size()
Map.size()
public void clear()
public java.util.Map<java.lang.String,java.lang.Object> getContextMap()
public void setContextMap(java.util.Map<java.lang.String,java.lang.Object> map)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |