com.softwareag.centrasite.appl.framework.validation.impl
Class DefaultContext

java.lang.Object
  extended by com.softwareag.centrasite.appl.framework.validation.impl.DefaultContext
All Implemented Interfaces:
Constraint.Context

public class DefaultContext
extends java.lang.Object
implements Constraint.Context

Default implementation of Constraint.Context.


Constructor Summary
DefaultContext()
           
 
Method Summary
 java.lang.Object get(java.lang.String pKey)
          Asks for an object in the context.
 void set(java.lang.String pKey, java.lang.Object pValue)
          Adds an object to the context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultContext

public DefaultContext()
Method Detail

get

public java.lang.Object get(java.lang.String pKey)
Description copied from interface: Constraint.Context

Asks for an object in the context.

Specified by:
get in interface Constraint.Context
Parameters:
pKey - The objects key.
Returns:
The requested object, if available, or null.

set

public void set(java.lang.String pKey,
                java.lang.Object pValue)
Description copied from interface: Constraint.Context

Adds an object to the context.

Specified by:
set in interface Constraint.Context
Parameters:
pKey - The objects key.
pValue - The object itself.