Package com.thoughtworks.xstream.mapper
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 class
private static class
private static class
Nested classes/interfaces inherited from interface com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionImplicitCollectionMapper
(Mapper wrapped, ReflectionProvider reflectionProvider) -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
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.getImplicitCollectionDefForFieldName
(Class itemType, String fieldName) getItemTypeForItemFieldName
(Class definedIn, String itemFieldName) getOrCreateMapper
(Class definedIn) Methods inherited from class com.thoughtworks.xstream.mapper.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:Mapper
Get the name of the field that acts as the default collection for an object, or return null if there is none.- Specified by:
getFieldNameForItemTypeAndName
in interfaceMapper
- Overrides:
getFieldNameForItemTypeAndName
in classMapperWrapper
- Parameters:
definedIn
- owning typeitemType
- item typeitemFieldName
- optional item element name
-
getItemTypeForItemFieldName
- Specified by:
getItemTypeForItemFieldName
in interfaceMapper
- Overrides:
getItemTypeForItemFieldName
in classMapperWrapper
-
getImplicitCollectionDefForFieldName
public Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType, String fieldName) - Specified by:
getImplicitCollectionDefForFieldName
in interfaceMapper
- Overrides:
getImplicitCollectionDefForFieldName
in classMapperWrapper
-
add
-
add
-
add
-