public class TLcdFeatureClassMapper extends Object implements ILcdFeatureClassMapper
ILcdFeatureClassMapper
interface.Constructor and Description |
---|
TLcdFeatureClassMapper()
Constructs a new
TLcdFeatureClassMapper object. |
Modifier and Type | Method and Description |
---|---|
Class |
getFeatureClass(String aFeatureName)
Returns the
Class object for the given feature name. |
void |
register(String aFeatureName,
Class aFeatureClass)
Registers the specified
Class object for the
given feature name. |
public TLcdFeatureClassMapper()
TLcdFeatureClassMapper
object.public void register(String aFeatureName, Class aFeatureClass) throws IllegalArgumentException
Class
object for the
given feature name.register
in interface ILcdFeatureClassMapper
aFeatureName
- a feature nameaFeatureClass
- all values of the feature named aFeatureName should
be of the type aFeatureClassIllegalArgumentException
- if there's already a Class
object
registered for the given feature nameIllegalArgumentException
- if aFeatureName or aFeatureClass is nullpublic Class getFeatureClass(String aFeatureName) throws IllegalArgumentException
Class
object for the given feature name.getFeatureClass
in interface ILcdFeatureClassMapper
aFeatureName
- a feature nameClass
object for the given feature nameIllegalArgumentException
- if no Class
object
is registered yet for the given feature name