Package org.exolab.castor.tools
Class MappingToolMappingLoader
- java.lang.Object
-
- org.exolab.castor.tools.MappingToolMappingLoader
-
public final class MappingToolMappingLoader extends java.lang.ObjectExtend mapping loader to give us access to the findAccessor method.
-
-
Constructor Summary
Constructors Constructor Description MappingToolMappingLoader(JavaNaming javaNaming)A MappingToolMappingLoader needs a javaNaming to be set.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanFindAccessors(java.lang.Class clazz, java.lang.String fieldName, java.lang.Class type)Checks if any accessor for a certain field exists.booleanreturnsArray(java.lang.Class clazz, java.lang.String fieldName, java.lang.Class type)Returns true if the get method returns an array.
-
-
-
Constructor Detail
-
MappingToolMappingLoader
public MappingToolMappingLoader(JavaNaming javaNaming)
A MappingToolMappingLoader needs a javaNaming to be set.- Parameters:
javaNaming- theJavaNamingimplementation to use
-
-
Method Detail
-
returnsArray
public boolean returnsArray(java.lang.Class clazz, java.lang.String fieldName, java.lang.Class type)Returns true if the get method returns an array. This method is used for greater compatability with generated descriptors.- Parameters:
clazz- the Class to find an accessor infieldName- the field for which an accessor is soughttype- the returning type of the accessor- Returns:
- if get method returns an array.
-
canFindAccessors
public boolean canFindAccessors(java.lang.Class clazz, java.lang.String fieldName, java.lang.Class type)Checks if any accessor for a certain field exists.- Parameters:
clazz- the Class to search infieldName- the field to search an accessor fortype- the return type the accessor should have- Returns:
- true if a matching accessor could be found
-
-