JIDE Common Layer 2.7.6

com.jidesoft.grouper
Class GrouperContext

java.lang.Object
  extended by com.jidesoft.converter.AbstractContext
      extended by com.jidesoft.grouper.GrouperContext
All Implemented Interfaces:
java.io.Serializable

public class GrouperContext
extends AbstractContext

The context object used by ObjectGrouper. For the same type, we may need different way to group them. This context is used so that user can register different groupers for the same type.

See Also:
Serialized Form

Field Summary
static GrouperContext DEFAULT_CONTEXT
          Default converter context with empty name and no user object.
 
Constructor Summary
GrouperContext(java.lang.String name)
          Creates a converter context with a name.
GrouperContext(java.lang.String name, java.lang.Object object)
          Creates a converter context with a name and an object.
 
Method Summary
 
Methods inherited from class com.jidesoft.converter.AbstractContext
equals, getName, getUserObject, hashCode, setName, setUserObject, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_CONTEXT

public static GrouperContext DEFAULT_CONTEXT
Default converter context with empty name and no user object.

Constructor Detail

GrouperContext

public GrouperContext(java.lang.String name)
Creates a converter context with a name.

Parameters:
name - the name of the grouper context.

GrouperContext

public GrouperContext(java.lang.String name,
                      java.lang.Object object)
Creates a converter context with a name and an object.

Parameters:
name - the name of the grouper context.
object - the user object. It can be used as any object to pass information along.

JIDE Common Layer 2.7.6