public class

ImplicitCollectionMapper

extends MapperWrapper
java.lang.Object
   ↳ com.thoughtworks.xstream.mapper.MapperWrapper
     ↳ com.thoughtworks.xstream.mapper.ImplicitCollectionMapper

Summary

Public Constructors
ImplicitCollectionMapper(Mapper wrapped)
ImplicitCollectionMapper(ClassMapper wrapped)
This constructor is deprecated. As of 1.2, use ImplicitCollectionMapper(Mapper)
Public Methods
void add(Class definedIn, String fieldName, Class itemType)
void add(Class definedIn, String fieldName, String itemFieldName, Class itemType)
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)
[Expand]
Inherited Methods
From class com.thoughtworks.xstream.mapper.MapperWrapper
From class java.lang.Object
From interface com.thoughtworks.xstream.mapper.Mapper

Public Constructors

public ImplicitCollectionMapper (Mapper wrapped)

public ImplicitCollectionMapper (ClassMapper wrapped)

This constructor is deprecated.
As of 1.2, use ImplicitCollectionMapper(Mapper)

Public Methods

public void add (Class definedIn, String fieldName, Class itemType)

public void add (Class definedIn, String fieldName, String itemFieldName, Class itemType)

public 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.

Parameters
definedIn owning type
itemType item type
itemFieldName optional item element name

public Mapper.ImplicitCollectionMapping getImplicitCollectionDefForFieldName (Class itemType, String fieldName)

public Class getItemTypeForItemFieldName (Class definedIn, String itemFieldName)