com.thoughtworks.xstream.mapper
Class ImplicitCollectionMapper

java.lang.Object
  extended bycom.thoughtworks.xstream.mapper.MapperWrapper
      extended bycom.thoughtworks.xstream.mapper.ImplicitCollectionMapper
All Implemented Interfaces:
Mapper

public class ImplicitCollectionMapper
extends MapperWrapper


Nested Class Summary
 
Nested classes inherited from class com.thoughtworks.xstream.mapper.Mapper
Mapper.ImplicitCollectionMapping, Mapper.Null
 
Constructor Summary
ImplicitCollectionMapper(ClassMapper wrapped)
          Deprecated. As of 1.2, use ImplicitCollectionMapper(Mapper)
ImplicitCollectionMapper(Mapper wrapped)
           
 
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, attributeForAlias, attributeForAlias, attributeForClassDefiningField, attributeForEnumType, attributeForImplementationClass, attributeForReadResolveField, defaultImplementationOf, getConverterFromAttribute, getConverterFromAttribute, getConverterFromItemType, getConverterFromItemType, getConverterFromItemType, 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
 

Constructor Detail

ImplicitCollectionMapper

public ImplicitCollectionMapper(Mapper wrapped)

ImplicitCollectionMapper

public ImplicitCollectionMapper(ClassMapper wrapped)
Deprecated. As of 1.2, use ImplicitCollectionMapper(Mapper)

Method Detail

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

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)


Joe Walnes, http://xstream.codehaus.org/