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 basicHashMapbased 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 voidaddNature(java.lang.String nature)Adds a Nature.protected JDOClassDescriptorResolvergetClassDescriptorResolver()Returns theJDOClassDescriptorResolverused to registerClassDescriptorinstances during their creation.java.lang.ObjectgetProperty(java.lang.String name)Get a Nature property.booleanhasNature(java.lang.String nature)Returns true if the Nature with the given name was added before, false if not.voidsetClassDescriptorResolver(JDOClassDescriptorResolver classDescriptorResolver)Sets aJDOClassDescriptorResolverinstance to be used forClassDescriptorregistration.voidsetProperty(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:
getPropertyin 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:
setPropertyin 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:
addNaturein 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:
hasNaturein interfaceNatureExtendable- Parameters:
nature- Nature Id.- Returns:
- true if added before, false if not.
-
getClassDescriptorResolver
protected JDOClassDescriptorResolver getClassDescriptorResolver()
Returns theJDOClassDescriptorResolverused to registerClassDescriptorinstances during their creation.- Returns:
- the
JDOClassDescriptorResolverused to registerClassDescriptorinstances
-
setClassDescriptorResolver
public void setClassDescriptorResolver(JDOClassDescriptorResolver classDescriptorResolver)
Sets aJDOClassDescriptorResolverinstance to be used forClassDescriptorregistration.- Specified by:
setClassDescriptorResolverin interfaceClassDescriptorResolutionCommand- Parameters:
classDescriptorResolver-JDOClassDescriptorResolverinstance to be used.
-
-