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(String name)
Creates a converter context with a name.
|
ConverterContext(String name,
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, toString
public static ConverterContext DEFAULT_CONTEXT
@Deprecated public static ConverterContext DEFAULT_CONTEXT_DYNAMIC_VALUE
public ConverterContext(String name)
name
- the name of the converter contextpublic 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.