com.thoughtworks.xstream.mapper
Class ImplicitCollectionMapper
java.lang.Object
com.thoughtworks.xstream.mapper.MapperWrapper
com.thoughtworks.xstream.mapper.ImplicitCollectionMapper
- All Implemented Interfaces:
- Mapper
public class ImplicitCollectionMapper
- extends MapperWrapper
Method Summary |
void |
add(java.lang.Class definedIn,
java.lang.String fieldName,
java.lang.Class itemType)
|
void |
add(java.lang.Class definedIn,
java.lang.String fieldName,
java.lang.String itemFieldName,
java.lang.Class itemType)
|
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)
|
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper |
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, getLocalConverter, isImmutableValueType, lookupMapperOfType, realClass, realMember, serializedClass, serializedMember, shouldSerializeMember |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImplicitCollectionMapper
public ImplicitCollectionMapper(Mapper wrapped)
ImplicitCollectionMapper
public ImplicitCollectionMapper(ClassMapper wrapped)
- Deprecated. As of 1.2, use
ImplicitCollectionMapper(Mapper)
getFieldNameForItemTypeAndName
public java.lang.String getFieldNameForItemTypeAndName(java.lang.Class definedIn,
java.lang.Class itemType,
java.lang.String itemFieldName)
- 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 interface Mapper
- Overrides:
getFieldNameForItemTypeAndName
in class MapperWrapper
- Parameters:
definedIn
- owning typeitemType
- item typeitemFieldName
- optional item element name
getItemTypeForItemFieldName
public java.lang.Class getItemTypeForItemFieldName(java.lang.Class definedIn,
java.lang.String itemFieldName)
- Specified by:
getItemTypeForItemFieldName
in interface Mapper
- Overrides:
getItemTypeForItemFieldName
in class MapperWrapper
getImplicitCollectionDefForFieldName
public Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(java.lang.Class itemType,
java.lang.String fieldName)
- Specified by:
getImplicitCollectionDefForFieldName
in interface Mapper
- Overrides:
getImplicitCollectionDefForFieldName
in class MapperWrapper
add
public void add(java.lang.Class definedIn,
java.lang.String fieldName,
java.lang.Class itemType)
add
public void add(java.lang.Class definedIn,
java.lang.String fieldName,
java.lang.String itemFieldName,
java.lang.Class itemType)
Copyright © 2004-2012 XStream. All Rights Reserved.