|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Nested Class Summary | |
static interface |
Mapper.ImplicitCollectionMapping
|
static class |
Mapper.Null
Place holder type used for null values. |
Method Summary | |
java.lang.String |
aliasForAttribute(java.lang.Class definedIn,
java.lang.String fieldName)
Returns an alias for a single field defined in an specific type. |
java.lang.String |
aliasForAttribute(java.lang.String attribute)
Get the alias for an attrbute's name. |
java.lang.String |
attributeForAlias(java.lang.Class definedIn,
java.lang.String alias)
Returns the field name for an aliased attribute. |
java.lang.String |
attributeForAlias(java.lang.String alias)
Get the attribut's name for an alias. |
java.lang.String |
attributeForClassDefiningField()
Deprecated. since 1.2, use aliasForAttribute instead. |
java.lang.String |
attributeForEnumType()
Deprecated. since 1.2, use aliasForAttribute instead. |
java.lang.String |
attributeForImplementationClass()
Deprecated. since 1.2, use aliasForAttribute instead. |
java.lang.String |
attributeForReadResolveField()
Deprecated. since 1.2, use aliasForAttribute instead. |
java.lang.Class |
defaultImplementationOf(java.lang.Class type)
|
SingleValueConverter |
getConverterFromAttribute(java.lang.Class type,
java.lang.String attribute)
Returns which converter to use for an specific attribute in a type. |
SingleValueConverter |
getConverterFromAttribute(java.lang.String name)
|
SingleValueConverter |
getConverterFromItemType(java.lang.Class type)
|
SingleValueConverter |
getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type)
|
SingleValueConverter |
getConverterFromItemType(java.lang.String fieldName,
java.lang.Class type,
java.lang.Class definedIn)
Returns a single value converter to be used in a specific field. |
java.lang.String |
getFieldNameForItemTypeAndName(java.lang.Class definedIn,
java.lang.Class itemType,
java.lang.String itemFieldName)
Get the name of the field that acts as the default collection for an object, or return null if there is none. |
Mapper.ImplicitCollectionMapping |
getImplicitCollectionDefForFieldName(java.lang.Class itemType,
java.lang.String fieldName)
|
java.lang.Class |
getItemTypeForItemFieldName(java.lang.Class definedIn,
java.lang.String itemFieldName)
|
boolean |
isImmutableValueType(java.lang.Class type)
Whether this type is a simple immutable value (int, boolean, String, URL, etc. |
Mapper |
lookupMapperOfType(java.lang.Class type)
|
java.lang.Class |
realClass(java.lang.String elementName)
How a serialized class representation should be mapped back to a real class. |
java.lang.String |
realMember(java.lang.Class type,
java.lang.String serialized)
How a serialized member representation should be mapped back to a real member. |
java.lang.String |
serializedClass(java.lang.Class type)
How a class name should be represented in its serialized form. |
java.lang.String |
serializedMember(java.lang.Class type,
java.lang.String memberName)
How a class member should be represented in its serialized form. |
boolean |
shouldSerializeMember(java.lang.Class definedIn,
java.lang.String fieldName)
Determine whether a specific member should be serialized. |
Method Detail |
public java.lang.String serializedClass(java.lang.Class type)
public java.lang.Class realClass(java.lang.String elementName)
public java.lang.String serializedMember(java.lang.Class type, java.lang.String memberName)
public java.lang.String realMember(java.lang.Class type, java.lang.String serialized)
public boolean isImmutableValueType(java.lang.Class type)
public java.lang.Class defaultImplementationOf(java.lang.Class type)
public java.lang.String attributeForImplementationClass()
public java.lang.String attributeForClassDefiningField()
public java.lang.String attributeForReadResolveField()
public java.lang.String attributeForEnumType()
public java.lang.String aliasForAttribute(java.lang.String attribute)
attribute
- the attribute
public java.lang.String attributeForAlias(java.lang.String alias)
alias
- the alias
public java.lang.String getFieldNameForItemTypeAndName(java.lang.Class definedIn, java.lang.Class itemType, java.lang.String itemFieldName)
definedIn
- owning typeitemType
- item typeitemFieldName
- optional item element namepublic java.lang.Class getItemTypeForItemFieldName(java.lang.Class definedIn, java.lang.String itemFieldName)
public Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(java.lang.Class itemType, java.lang.String fieldName)
public boolean shouldSerializeMember(java.lang.Class definedIn, java.lang.String fieldName)
public SingleValueConverter getConverterFromItemType(java.lang.String fieldName, java.lang.Class type)
public SingleValueConverter getConverterFromItemType(java.lang.Class type)
public SingleValueConverter getConverterFromAttribute(java.lang.String name)
public Mapper lookupMapperOfType(java.lang.Class type)
public SingleValueConverter getConverterFromItemType(java.lang.String fieldName, java.lang.Class type, java.lang.Class definedIn)
fieldName
- the field nametype
- the field typedefinedIn
- the type which defines this field
public java.lang.String aliasForAttribute(java.lang.Class definedIn, java.lang.String fieldName)
definedIn
- the type where the field was definedfieldName
- the field name
public java.lang.String attributeForAlias(java.lang.Class definedIn, java.lang.String alias)
definedIn
- the type where the field was definedalias
- the alias
public SingleValueConverter getConverterFromAttribute(java.lang.Class type, java.lang.String attribute)
type
- the field typeattribute
- the attribute name
since 1.2.2
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |