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(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)
|
Methods inherited from class com.thoughtworks.xstream.mapper.MapperWrapper |
aliasForAttribute, aliasForAttribute, aliasForSystemAttribute, attributeForAlias, attributeForAlias, 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)
getFieldNameForItemTypeAndName
public String getFieldNameForItemTypeAndName(Class definedIn,
Class itemType,
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 Class getItemTypeForItemFieldName(Class definedIn,
String itemFieldName)
- Specified by:
getItemTypeForItemFieldName
in interface Mapper
- Overrides:
getItemTypeForItemFieldName
in class MapperWrapper
getImplicitCollectionDefForFieldName
public Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName(Class itemType,
String fieldName)
- Specified by:
getImplicitCollectionDefForFieldName
in interface Mapper
- Overrides:
getImplicitCollectionDefForFieldName
in class MapperWrapper
add
public void add(Class definedIn,
String fieldName,
Class itemType)
add
public void add(Class definedIn,
String fieldName,
String itemFieldName,
Class itemType)
add
public void add(Class definedIn,
String fieldName,
String itemFieldName,
Class itemType,
String keyFieldName)
Copyright © 2004-2014 XStream. All Rights Reserved.