|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.converter.AbstractContext com.jidesoft.converter.ConverterContext
public class ConverterContext
The context object used by ObjectConverter. For the same type, we may need different way to convert them. This context is used so that user can register different converters for the same type.
Field Summary | |
---|---|
static ConverterContext |
DEFAULT_CONTEXT
Default converter context with empty name and no user object. |
static ConverterContext |
DEFAULT_CONTEXT_DYNAMIC_VALUE
Deprecated. |
Constructor Summary | |
---|---|
ConverterContext(String name)
Creates a converter context with a name. |
|
ConverterContext(String name,
Object object)
Creates a converter context with a name and an object. |
Method Summary | |
---|---|
static ConverterContext |
getArrayConverterContext(ConverterContext context)
Gets the converter context which add a trailing "[]" to the context name. |
static ConverterContext |
getElementConverterContext(ConverterContext context)
Gets the converter context which removes the trailing "[]" from the context name. |
static boolean |
isArrayConverterContext(ConverterContext context)
Checks if the context is for an array. |
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 |
---|
public static ConverterContext DEFAULT_CONTEXT
@Deprecated public static ConverterContext DEFAULT_CONTEXT_DYNAMIC_VALUE
Constructor Detail |
---|
public ConverterContext(String name)
name
- the name of the converter contextpublic ConverterContext(String name, Object object)
name
- the name of the converter contextobject
- the user object. It can be used as any object to pass information along.Method Detail |
---|
public static boolean isArrayConverterContext(ConverterContext context)
context
- the context.
public static ConverterContext getElementConverterContext(ConverterContext context)
context
- the context for an array type.
public static ConverterContext getArrayConverterContext(ConverterContext context)
context
- the context for the element type of an array.
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |