Package org.ocpsoft.rewrite.context
Interface Context
- All Known Subinterfaces:
EvaluationContext
- All Known Implementing Classes:
ContextBase,RuleBuilder
public interface Context
An object capable of storing and retrieving values.
- Author:
- Lincoln Baxter, III
-
Method Summary
Modifier and TypeMethodDescriptionvoidclear()Clear the contents of this context and reset to a "like-new" state.booleancontainsKey(Object key) Returntrueif this context contains an entry with the given key.Get the value in the context map defined by the given key.voidStore a key value pair into the context.
-
Method Details
-
clear
void clear()Clear the contents of this context and reset to a "like-new" state. -
get
Get the value in the context map defined by the given key. Returnnullif no such key exists, or if they key maps to anullvalue. -
put
Store a key value pair into the context. -
containsKey
Returntrueif this context contains an entry with the given key.
-