public class ConverterContext
extends java.lang.Object
implements java.io.Serializable
ConverterContext is used by ObjectConverterManager so that for the same type, different
converters can be registered since the ConverterContext is different.| Modifier and Type | Field and Description |
|---|---|
static ConverterContext |
CONTEXT_DEFAULT
Default ConverterContext with empty name.
|
static java.lang.String |
PROPERTY_OBJECT_CONVERTER_MANAGER
Property for the ObjectConverterManager.
|
| Constructor and Description |
|---|
ConverterContext(java.lang.String name)
Creates a ConverterContext with a name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Override equals.
|
static ConverterContext |
getArrayConverterContext(ConverterContext context)
Gets the ConverterContext which add a trailing "[]" to the context name.
|
static ConverterContext |
getElementConverterContext(ConverterContext context)
Gets the ConverterContext which removes the trailing "[]" from the context name.
|
java.lang.String |
getName()
Gets the name of the ConverterContext.
|
javafx.collections.ObservableMap<java.lang.Object,java.lang.Object> |
getProperties()
Returns an observable map of properties on this node for use primarily by application developers.
|
int |
hashCode() |
boolean |
hasProperties()
Tests if Node has properties.
|
static boolean |
isArrayConverterContext(ConverterContext context)
Checks if the context is for an array.
|
void |
setName(java.lang.String name)
Sets the name of the ConverterContext.
|
java.lang.String |
toString() |
public static final ConverterContext CONTEXT_DEFAULT
public static final java.lang.String PROPERTY_OBJECT_CONVERTER_MANAGER
RequiringConverterManager interface which can be implemented by the ObjectConverter.public ConverterContext(java.lang.String name)
name - the name of the ConverterContextpublic 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.public java.lang.String getName()
public void setName(java.lang.String name)
name - the name of the ConverterContextpublic final javafx.collections.ObservableMap<java.lang.Object,java.lang.Object> getProperties()
public boolean hasProperties()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - object to compare.public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object