org.jicengine.operation
Class EmptyContext

java.lang.Object
  extended byorg.jicengine.operation.EmptyContext
All Implemented Interfaces:
Context

public class EmptyContext
extends java.lang.Object
implements Context

Author:
.timo

Nested Class Summary
 
Nested classes inherited from class org.jicengine.operation.Context
Context.DuplicateNameException, Context.ObjectNotFoundException
 
Field Summary
static EmptyContext INSTANCE
           
 
Constructor Summary
EmptyContext()
           
 
Method Summary
 void addObject(java.lang.String name, java.lang.Object object)
          If addObject success, the object stored will be returned by getObject with the same name.
 java.lang.Object getObject(java.lang.String name)
          finds an object from the context.
 boolean hasObject(java.lang.String name)
           
 boolean removeObject(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static EmptyContext INSTANCE
Constructor Detail

EmptyContext

public EmptyContext()
Method Detail

getObject

public java.lang.Object getObject(java.lang.String name)
Description copied from interface: Context
finds an object from the context.

Specified by:
getObject in interface Context
Returns:
the object. NOTE: currently no null values supported.

hasObject

public boolean hasObject(java.lang.String name)
Specified by:
hasObject in interface Context

removeObject

public boolean removeObject(java.lang.String name)

addObject

public void addObject(java.lang.String name,
                      java.lang.Object object)
Description copied from interface: Context
If addObject success, the object stored will be returned by getObject with the same name.

Specified by:
addObject in interface Context