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 void
Adds a Nature.protected JDOClassDescriptorResolver
Returns theJDOClassDescriptorResolver
used to registerinvalid reference
ClassDescriptor
final Object
getProperty
(String name) Get a Nature property.final boolean
Returns true if the Nature with the given name was added before, false if not.void
setClassDescriptorResolver
(JDOClassDescriptorResolver classDescriptorResolver) Sets aJDOClassDescriptorResolver
instance to be used forClassDescriptor
registration.final void
setProperty
(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, wait
Methods 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:
getProperty
in interfacePropertyHolder
- Parameters:
name
- Name of the property.- Returns:
- Property value.
-
setProperty
Set a Nature property.- Specified by:
setProperty
in interfacePropertyHolder
- Parameters:
name
- Name of the property.value
- Value of the property.
-
addNature
Adds a Nature.- Specified by:
addNature
in interfaceNatureExtendable
- Parameters:
nature
- Nature Id.
-
hasNature
Returns true if the Nature with the given name was added before, false if not.- Specified by:
hasNature
in interfaceNatureExtendable
- Parameters:
nature
- Nature Id.- Returns:
- true if added before, false if not.
-
getClassDescriptorResolver
Returns theJDOClassDescriptorResolver
used to registerinvalid reference
ClassDescriptor
- Returns:
- the
JDOClassDescriptorResolver
used to registerinvalid reference
ClassDescriptor
-
setClassDescriptorResolver
Sets aJDOClassDescriptorResolver
instance to be used forClassDescriptor
registration.- Specified by:
setClassDescriptorResolver
in interfaceClassDescriptorResolutionCommand
- Parameters:
classDescriptorResolver
-JDOClassDescriptorResolver
instance to be used.
-