| Modifier and Type | Class and Description |
|---|---|
| public static interface | |
| public static class | Mapper.Null
Place holder type used for null values. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: the aliasthe attribute attribute)Get the alias for an attribute's name. |
| public String | Returns: the alias for this field or its own name if no alias was definedthe type where the field was defined definedIn, String the field name fieldName)
Deprecated
As of 1.3, use combination of
Returns an alias for a single field defined in an specific type.
serializedMember(Class, String) and getConverterFromItemType(String, Class, Class)
|
| public String | Returns: the aliasthe system attribute attribute)Get the alias for a system attribute's name. |
| public String | Returns: the attribute's namethe alias alias)Get the attribute's name for an alias. |
| public String | Returns: the original attribute namethe type where the field was defined definedIn, String the alias alias)
Deprecated
As of 1.3, use combination of
Returns the field name for an aliased attribute.
realMember(Class, String) and getConverterFromItemType(String, Class, Class)
|
| public Class | |
| public SingleValueConverter | getConverterFromAttribute(String name)
Deprecated
As of 1.3, use
getConverterFromAttribute(Class, String, Class)
|
| public SingleValueConverter | getConverterFromAttribute(Class<T>
the field's parent definedIn, String the attribute name attribute)
Deprecated
As of 1.3.1, use
Returns which converter to use for an specific attribute in a type.
getConverterFromAttribute(Class, String, Class)
|
| public SingleValueConverter | getConverterFromAttribute(Class<T>
the field's parent definedIn, String the attribute name attribute, Class<T> the type the converter should create type)Returns which converter to use for an specific attribute in a type. |
| public SingleValueConverter | getConverterFromItemType(String fieldName, Class<T> type)
Deprecated
As of 1.3, use
getConverterFromItemType(String, Class, Class)
|
| public SingleValueConverter | getConverterFromItemType(Class<T> type)
Deprecated
As of 1.3, use
getConverterFromItemType(String, Class, Class)
|
| public SingleValueConverter | Returns: a SingleValueConverter or null if there no such converter should be used for this field.the field name fieldName, Class<T> the field type type, Class<T> the type which defines this field definedIn)Returns a single value converter to be used in a specific field. |
| public String | getFieldNameForItemTypeAndName(Class<T>
owning type definedIn, Class<T> item type itemType, String optional item element name itemFieldName)Get the name of the field that acts as the default collection for an object, or return null if there is none. |
| public Mapper. | |
| public Class | |
| public Converter | |
| public boolean | |
| public boolean | isImmutableValueType(Class<T> type)
Whether this type is a simple immutable value (int, boolean, String, URL, etc). |
| public boolean | |
| public Mapper | |
| public Class | |
| public String | realMember(Class<T> type, String serialized)
How a serialized member representation should be mapped back to a real member. |
| public String | |
| public String | serializedMember(Class<T> type, String memberName)
How a class member should be represented in its serialized form. |
| public boolean | shouldSerializeMember(Class<T> definedIn, String fieldName)
Determine whether a specific member should be serialized. |
| aliasForAttribute | back to summary |
|---|---|
| public String aliasForAttribute(String attribute) Get the alias for an attribute's name. | |
| aliasForAttribute | back to summary |
|---|---|
| public String aliasForAttribute(Class<T> definedIn, String fieldName)
Deprecated As of 1.3, use combination of Returns an alias for a single field defined in an specific type. | |
| aliasForSystemAttribute | back to summary |
|---|---|
| public String aliasForSystemAttribute(String attribute) Get the alias for a system attribute's name. | |
| attributeForAlias | back to summary |
|---|---|
| public String attributeForAlias(String alias) Get the attribute's name for an alias. | |
| attributeForAlias | back to summary |
|---|---|
| public String attributeForAlias(Class<T> definedIn, String alias)
Deprecated As of 1.3, use combination of Returns the field name for an aliased attribute. | |
| defaultImplementationOf | back to summary |
|---|---|
| public Class | |
| getConverterFromAttribute | back to summary |
|---|---|
| public SingleValueConverter getConverterFromAttribute(String name)
Deprecated As of 1.3, use | |
| getConverterFromAttribute | back to summary |
|---|---|
| public SingleValueConverter getConverterFromAttribute(Class<T> definedIn, String attribute)
Deprecated As of 1.3.1, use Returns which converter to use for an specific attribute in a type. | |
| getConverterFromAttribute | back to summary |
|---|---|
| public SingleValueConverter getConverterFromAttribute(Class<T> definedIn, String attribute, Class<T> type) Returns which converter to use for an specific attribute in a type. | |
| getConverterFromItemType | back to summary |
|---|---|
| public SingleValueConverter getConverterFromItemType(String fieldName, Class<T> type)
Deprecated As of 1.3, use | |
| getConverterFromItemType | back to summary |
|---|---|
| public SingleValueConverter getConverterFromItemType(Class<T> type)
Deprecated As of 1.3, use | |
| getConverterFromItemType | back to summary |
|---|---|
| public SingleValueConverter getConverterFromItemType(String fieldName, Class<T> type, Class<T> definedIn) Returns a single value converter to be used in a specific field.
| |
| getFieldNameForItemTypeAndName | back to summary |
|---|---|
| public String getFieldNameForItemTypeAndName(Class<T> definedIn, Class<T> itemType, String itemFieldName) Get the name of the field that acts as the default collection for an object, or return null if there is none. | |
| getImplicitCollectionDefForFieldName | back to summary |
|---|---|
| public Mapper. | |
| getItemTypeForItemFieldName | back to summary |
|---|---|
| public Class | |
| getLocalConverter | back to summary |
|---|---|
| public Converter getLocalConverter(Class<T> definedIn, String fieldName) | |
| isIgnoredElement | back to summary |
|---|---|
| public boolean isIgnoredElement(String name) Whether this name can be ignored.
| |
| isImmutableValueType | back to summary |
|---|---|
| public boolean isImmutableValueType(Class<T> type) Whether this type is a simple immutable value (int, boolean, String, URL, etc). Immutable types will be repeatedly written in the serialized stream, instead of using object references. | |
| isReferenceable | back to summary |
|---|---|
| public boolean isReferenceable(Class<T> type) Whether this type is referenceable in a stream.
| |
| lookupMapperOfType | back to summary |
|---|---|
| public Mapper lookupMapperOfType(Class<T> type) | |
| realClass | back to summary |
|---|---|
| public Class How a serialized class representation should be mapped back to a real class. | |
| realMember | back to summary |
|---|---|
| public String realMember(Class<T> type, String serialized) How a serialized member representation should be mapped back to a real member. | |
| serializedClass | back to summary |
|---|---|
| public String serializedClass(Class<T> type) How a class name should be represented in its serialized form. | |
| serializedMember | back to summary |
|---|---|
| public String serializedMember(Class<T> type, String memberName) How a class member should be represented in its serialized form. | |
| shouldSerializeMember | back to summary |
|---|---|
| public boolean shouldSerializeMember(Class<T> definedIn, String fieldName) Determine whether a specific member should be serialized.
| |
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public String | |
| public Class | |
| public String |
| getFieldName | back to summary |
|---|---|
| public String getFieldName() | |
| getItemFieldName | back to summary |
|---|---|
| public String getItemFieldName() | |
| getItemType | back to summary |
|---|---|
| public Class | |
| getKeyFieldName | back to summary |
|---|---|
| public String getKeyFieldName() | |
| Access | Constructor and Description |
|---|---|
| public |
| Null | back to summary |
|---|---|
| public Null() | |