org.exolab.castor.tools
Class MappingToolMappingLoader
java.lang.Object
org.exolab.castor.tools.MappingToolMappingLoader
public final class MappingToolMappingLoader
extends java.lang.Object
Extend mapping loader to give us access to the findAccessor method.
boolean | canFindAccessors(Class clazz, String fieldName, Class type) - Checks if any accessor for a certain field exists.
|
boolean | returnsArray(Class clazz, String fieldName, Class type) - Returns true if the get method returns an array.
|
MappingToolMappingLoader
public MappingToolMappingLoader(JavaNaming javaNaming)
A MappingToolMappingLoader needs a javaNaming to be set.
canFindAccessors
public boolean canFindAccessors(Class clazz,
String fieldName,
Class type)
Checks if any accessor for a certain field exists.
clazz
- the Class to search infieldName
- the field to search an accessor fortype
- the return type the accessor should have
- true if a matching accessor could be found
returnsArray
public boolean returnsArray(Class clazz,
String fieldName,
Class type)
Returns true if the get method returns an array.
This method is used for greater compatability with
generated descriptors.
clazz
- the Class to find an accessor infieldName
- the field for which an accessor is soughttype
- the returning type of the accessor
- if get method returns an array.
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com