Package org.ocpsoft.rewrite.context
Class ContextBase
java.lang.Object
org.ocpsoft.rewrite.context.ContextBase
- All Implemented Interfaces:
Context
Base
Context abstract class.- Author:
- Lincoln Baxter, III
-
Constructor Summary
Constructors -
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.toString()
-
Constructor Details
-
ContextBase
public ContextBase()
-
-
Method Details
-
clear
public void clear()Description copied from interface:ContextClear the contents of this context and reset to a "like-new" state. -
get
Description copied from interface:ContextGet the value in the context map defined by the given key. Returnnullif no such key exists, or if they key maps to anullvalue. -
put
Description copied from interface:ContextStore a key value pair into the context. -
containsKey
Description copied from interface:ContextReturntrueif this context contains an entry with the given key.- Specified by:
containsKeyin interfaceContext
-
toString
-