Class BaseResolutionCommand
java.lang.Object
org.castor.cpa.util.classresolution.command.BaseResolutionCommand
- All Implemented Interfaces:
NatureExtendable,PropertyHolder,ClassDescriptorResolutionCommand
- Direct Known Subclasses:
ClassResolutionByAnnotations,ClassResolutionByCDR,ClassResolutionByFile,ClassResolutionByMappingLoader
public abstract class BaseResolutionCommand
extends Object
implements ClassDescriptorResolutionCommand
Provides basic
HashMap based property implementation for a
ClassDescriptorResolutionCommand.- Since:
- 1.2.1
- Author:
- Lukas Lang
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal voidAdds a Nature.protected JDOClassDescriptorResolverReturns theJDOClassDescriptorResolverused to registerinstances during their creation.invalid reference
ClassDescriptorfinal ObjectgetProperty(String name) Get a Nature property.final booleanReturns true if the Nature with the given name was added before, false if not.voidsetClassDescriptorResolver(JDOClassDescriptorResolver classDescriptorResolver) Sets aJDOClassDescriptorResolverinstance to be used forClassDescriptorregistration.final voidsetProperty(String name, Object value) Set a Nature property.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.castor.cpa.util.classresolution.command.ClassDescriptorResolutionCommand
resolve
-
Constructor Details
-
BaseResolutionCommand
public BaseResolutionCommand()
-
-
Method Details
-
getProperty
Get a Nature property.- Specified by:
getPropertyin interfacePropertyHolder- Parameters:
name- Name of the property.- Returns:
- Property value.
-
setProperty
Set a Nature property.- Specified by:
setPropertyin interfacePropertyHolder- Parameters:
name- Name of the property.value- Value of the property.
-
addNature
Adds a Nature.- Specified by:
addNaturein interfaceNatureExtendable- Parameters:
nature- Nature Id.
-
hasNature
Returns true if the Nature with the given name was added before, false if not.- Specified by:
hasNaturein interfaceNatureExtendable- Parameters:
nature- Nature Id.- Returns:
- true if added before, false if not.
-
getClassDescriptorResolver
Returns theJDOClassDescriptorResolverused to registerinstances during their creation.invalid reference
ClassDescriptor- Returns:
- the
JDOClassDescriptorResolverused to registerinstancesinvalid reference
ClassDescriptor
-
setClassDescriptorResolver
Sets aJDOClassDescriptorResolverinstance to be used forClassDescriptorregistration.- Specified by:
setClassDescriptorResolverin interfaceClassDescriptorResolutionCommand- Parameters:
classDescriptorResolver-JDOClassDescriptorResolverinstance to be used.
-