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 java.lang.Object implements ClassDescriptorResolutionCommand
Provides basicHashMap
based property implementation for aClassDescriptorResolutionCommand
.- Since:
- 1.2.1
- Author:
- Lukas Lang
-
-
Constructor Summary
Constructors Constructor Description BaseResolutionCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addNature(java.lang.String nature)
Adds a Nature.protected JDOClassDescriptorResolver
getClassDescriptorResolver()
Returns theJDOClassDescriptorResolver
used to registerClassDescriptor
instances during their creation.java.lang.Object
getProperty(java.lang.String name)
Get a Nature property.boolean
hasNature(java.lang.String nature)
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.void
setProperty(java.lang.String name, java.lang.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
-
-
-
-
Method Detail
-
getProperty
public final java.lang.Object getProperty(java.lang.String name)
Get a Nature property.- Specified by:
getProperty
in interfacePropertyHolder
- Parameters:
name
- Name of the property.- Returns:
- Property value.
-
setProperty
public final void setProperty(java.lang.String name, java.lang.Object value)
Set a Nature property.- Specified by:
setProperty
in interfacePropertyHolder
- Parameters:
name
- Name of the property.value
- Value of the property.
-
addNature
public final void addNature(java.lang.String nature)
Adds a Nature.- Specified by:
addNature
in interfaceNatureExtendable
- Parameters:
nature
- Nature Id.
-
hasNature
public final boolean hasNature(java.lang.String nature)
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
protected JDOClassDescriptorResolver getClassDescriptorResolver()
Returns theJDOClassDescriptorResolver
used to registerClassDescriptor
instances during their creation.- Returns:
- the
JDOClassDescriptorResolver
used to registerClassDescriptor
instances
-
setClassDescriptorResolver
public void setClassDescriptorResolver(JDOClassDescriptorResolver classDescriptorResolver)
Sets aJDOClassDescriptorResolver
instance to be used forClassDescriptor
registration.- Specified by:
setClassDescriptorResolver
in interfaceClassDescriptorResolutionCommand
- Parameters:
classDescriptorResolver
-JDOClassDescriptorResolver
instance to be used.
-
-