| java.lang.Object com.jidesoft.converter.AbstractContext
All known Subclasses: com.jidesoft.comparator.ComparatorContext, com.jidesoft.converter.ConverterContext, com.jidesoft.grouper.GrouperContext,
AbstractContext | abstract public class AbstractContext implements Serializable(Code) | | AbstractContext is a generic context class. It has two fields: name and userObject.
The name is just the name of the context. You can use a meanful string to name it.
The userObject is customizable portion of Context. You can set whatever you want as userObject.
It's just a convention between whoever set it and whoever use it. For example, in ConverterContext ,
we sometimes used it to pass in a Format .
|
Constructor Summary | |
public | AbstractContext(String name) Creates a named AbstractContext . | public | AbstractContext(String name, Object object) Creates an abstract contex with a name and an object.
Parameters: name - the name of the AbstractContext . Parameters: object - the user object. |
AbstractContext | public AbstractContext(String name)(Code) | | Creates a named AbstractContext .
Parameters: name - the name of the AbstractContext . |
AbstractContext | public AbstractContext(String name, Object object)(Code) | | Creates an abstract contex with a name and an object.
Parameters: name - the name of the AbstractContext . Parameters: object - the user object. It can be used any object to pass informaton along. |
equals | public boolean equals(Object o)(Code) | | Override equals. Two abstract context equals as long as the name is the same.
Parameters: o - object to compare. if two objects euqnals. |
getName | public String getName()(Code) | | Gets the name of the abstract context.
the name of the abstract context |
getUserObject | public Object getUserObject()(Code) | | Gets the user object.
the user object |
hashCode | public int hashCode()(Code) | | |
setName | public void setName(String name)(Code) | | Sets the name of the abstract context.
Parameters: name - the name of the abstract context |
setUserObject | public void setUserObject(Object userObject)(Code) | | Sets the user object.
Parameters: userObject - the user object. |
|
|