public class ImplicitCollectionMapper extends MapperWrapper
Mapper.ImplicitCollectionMapping, Mapper.Null
Constructor and Description |
---|
ImplicitCollectionMapper(Mapper wrapped,
ReflectionProvider reflectionProvider) |
Modifier and Type | Method and Description |
---|---|
void |
add(Class definedIn,
String fieldName,
Class itemType) |
void |
add(Class definedIn,
String fieldName,
String itemFieldName,
Class itemType) |
void |
add(Class definedIn,
String fieldName,
String itemFieldName,
Class itemType,
String keyFieldName) |
String |
getFieldNameForItemTypeAndName(Class definedIn,
Class 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.
|
Mapper.ImplicitCollectionMapping |
getImplicitCollectionDefForFieldName(Class itemType,
String fieldName) |
Class |
getItemTypeForItemFieldName(Class definedIn,
String itemFieldName) |
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember
public ImplicitCollectionMapper(Mapper wrapped, ReflectionProvider reflectionProvider)
public String getFieldNameForItemTypeAndName(Class definedIn, Class itemType, String itemFieldName)
Mapper
getFieldNameForItemTypeAndName
in interface Mapper
getFieldNameForItemTypeAndName
in class MapperWrapper
definedIn
- owning typeitemType
- item typeitemFieldName
- optional item element namepublic Class getItemTypeForItemFieldName(Class definedIn, String itemFieldName)
getItemTypeForItemFieldName
in interface Mapper
getItemTypeForItemFieldName
in class MapperWrapper
public Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType, String fieldName)
getImplicitCollectionDefForFieldName
in interface Mapper
getImplicitCollectionDefForFieldName
in class MapperWrapper
Copyright © 2004–2017 XStream. All rights reserved.