Class ImplicitCollectionMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.ImplicitCollectionMapper
- All Implemented Interfaces:
Mapper
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate classprivate static classprivate static classNested classes/interfaces inherited from interface Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImplicitCollectionMapper(Mapper wrapped, ReflectionProvider reflectionProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidgetFieldNameForItemTypeAndName(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.getImplicitCollectionDefForFieldName(Class itemType, String fieldName) getItemTypeForItemFieldName(Class definedIn, String itemFieldName) getOrCreateMapper(Class definedIn) Methods inherited from class MapperWrapper
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getLocalConverter, isIgnoredElement, isImmutableValueType, isReferenceable, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember
-
Field Details
-
reflectionProvider
-
classNameToMapper
-
-
Constructor Details
-
ImplicitCollectionMapper
-
-
Method Details
-
getMapper
private ImplicitCollectionMapper.ImplicitCollectionMapperForClass getMapper(Class declaredFor, String fieldName) -
getOrCreateMapper
private ImplicitCollectionMapper.ImplicitCollectionMapperForClass getOrCreateMapper(Class definedIn) -
getFieldNameForItemTypeAndName
Description copied from interface:MapperGet the name of the field that acts as the default collection for an object, or return null if there is none.- Specified by:
getFieldNameForItemTypeAndNamein interfaceMapper- Overrides:
getFieldNameForItemTypeAndNamein classMapperWrapper- Parameters:
definedIn- owning typeitemType- item typeitemFieldName- optional item element name
-
getItemTypeForItemFieldName
- Specified by:
getItemTypeForItemFieldNamein interfaceMapper- Overrides:
getItemTypeForItemFieldNamein classMapperWrapper
-
getImplicitCollectionDefForFieldName
public Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType, String fieldName) - Specified by:
getImplicitCollectionDefForFieldNamein interfaceMapper- Overrides:
getImplicitCollectionDefForFieldNamein classMapperWrapper
-
add
-
add
-
add
-