Class ContextBase

java.lang.Object
org.ocpsoft.rewrite.context.ContextBase
All Implemented Interfaces:
Context

public abstract class ContextBase extends Object implements Context
Base Context abstract class.
Author:
Lincoln Baxter, III
  • Constructor Details

    • ContextBase

      public ContextBase()
  • Method Details

    • clear

      public void clear()
      Description copied from interface: Context
      Clear the contents of this context and reset to a "like-new" state.
      Specified by:
      clear in interface Context
    • get

      public Object get(Object key)
      Description copied from interface: Context
      Get the value in the context map defined by the given key. Return null if no such key exists, or if they key maps to a null value.
      Specified by:
      get in interface Context
    • put

      public void put(Object key, Object value)
      Description copied from interface: Context
      Store a key value pair into the context.
      Specified by:
      put in interface Context
    • containsKey

      public boolean containsKey(Object key)
      Description copied from interface: Context
      Return true if this context contains an entry with the given key.
      Specified by:
      containsKey in interface Context
    • toString

      public String toString()
      Overrides:
      toString in class Object