com.thoughtworks.xstream.alias
Interface ImplicitCollectionMapper


public interface ImplicitCollectionMapper

A default collection is a special field of an object where any child nodes that do not match with fields will be added.

Author:
Joe Walnes

Method Summary
 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.
 ImplicitCollectionDef getImplicitCollectionDefForFieldName(java.lang.Class definedIn, java.lang.String fieldName)
           
 java.lang.Class getItemTypeForItemFieldName(java.lang.Class definedIn, java.lang.String itemFieldName)
           
 

Method Detail

getFieldNameForItemTypeAndName

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

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

getItemTypeForItemFieldName

public java.lang.Class getItemTypeForItemFieldName(java.lang.Class definedIn,
                                                   java.lang.String itemFieldName)

getImplicitCollectionDefForFieldName

public ImplicitCollectionDef getImplicitCollectionDefForFieldName(java.lang.Class definedIn,
                                                                  java.lang.String fieldName)


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