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
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 typeitemType
- item typeitemFieldName
- 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/