org.castor.cpa.util.classresolution.command
Class BaseResolutionCommand

java.lang.Object
  extended by 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 basic HashMap based property implementation for a ClassDescriptorResolutionCommand.

Since:
1.2.1
Author:
Lukas Lang

Constructor Summary
BaseResolutionCommand()
           
 
Method Summary
 void addNature(java.lang.String nature)
          Adds a Nature.
protected  JDOClassDescriptorResolver getClassDescriptorResolver()
          Returns the JDOClassDescriptorResolver used to register ClassDescriptor 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 a JDOClassDescriptorResolver instance to be used for ClassDescriptor 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
 

Constructor Detail

BaseResolutionCommand

public BaseResolutionCommand()
Method Detail

getProperty

public final java.lang.Object getProperty(java.lang.String name)
Get a Nature property.

Specified by:
getProperty in interface PropertyHolder
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 interface PropertyHolder
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 interface NatureExtendable
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 interface NatureExtendable
Parameters:
nature - Nature Id.
Returns:
true if added before, false if not.

getClassDescriptorResolver

protected JDOClassDescriptorResolver getClassDescriptorResolver()
Returns the JDOClassDescriptorResolver used to register ClassDescriptor instances during their creation.

Returns:
the JDOClassDescriptorResolver used to register ClassDescriptor instances

setClassDescriptorResolver

public void setClassDescriptorResolver(JDOClassDescriptorResolver classDescriptorResolver)
Sets a JDOClassDescriptorResolver instance to be used for ClassDescriptor registration.

Specified by:
setClassDescriptorResolver in interface ClassDescriptorResolutionCommand
Parameters:
classDescriptorResolver - JDOClassDescriptorResolver instance to be used.


Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com