public class ConverterContext extends AbstractContext
| Modifier and Type | Field and Description |
|---|---|
static ConverterContext |
DEFAULT_CONTEXT
Default converter context with empty name and no user object.
|
static ConverterContext |
DEFAULT_CONTEXT_DYNAMIC_VALUE
Deprecated.
|
| Constructor and Description |
|---|
ConverterContext(java.lang.String name)
Creates a converter context with a name.
|
ConverterContext(java.lang.String name,
java.lang.Object object)
Creates a converter context with a name and an object.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
equals, getName, getUserObject, hashCode, setName, setUserObject, toStringpublic static ConverterContext DEFAULT_CONTEXT
@Deprecated public static ConverterContext DEFAULT_CONTEXT_DYNAMIC_VALUE
public ConverterContext(java.lang.String name)
name - the name of the converter contextpublic ConverterContext(java.lang.String name,
java.lang.Object object)
name - the name of the converter contextobject - the user object. It can be used as any object to pass information along.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.