org.exolab.castor.xml.util
Class BaseResolutionCommand

java.lang.Object
  extended by org.exolab.castor.xml.util.BaseResolutionCommand
All Implemented Interfaces:
NatureExtendable, PropertyHolder, ClassDescriptorResolutionCommand
Direct Known Subclasses:
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.
 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 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.exolab.castor.xml.util.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.


Copyright © 2011. All Rights Reserved.