org.exolab.castor.builder.conflictresolution
Class BaseClassNameCRStrategy

java.lang.Object
  extended by org.exolab.castor.builder.conflictresolution.BaseClassNameCRStrategy
All Implemented Interfaces:
ClassNameCRStrategy
Direct Known Subclasses:
InformViaLogClassNameCRStrategy, WarningViaDialogClassNameCRStrategy

public abstract class BaseClassNameCRStrategy
extends java.lang.Object
implements ClassNameCRStrategy

Abtract base class for all ClassNameCRStrategy implementations.


Constructor Summary
BaseClassNameCRStrategy()
           
 
Method Summary
protected  SingleClassGenerator getSingleClassGenerator()
          Returns the current caller of this strategy implementation.
 void setSingleClassGenerator(SingleClassGenerator generator)
          Sets the current caller of this strategy implementation.
 
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.builder.conflictresolution.ClassNameCRStrategy
dealWithClassNameConflict, dealWithFileOverwrite, getName, setConsoleDialog
 

Constructor Detail

BaseClassNameCRStrategy

public BaseClassNameCRStrategy()
Method Detail

setSingleClassGenerator

public final void setSingleClassGenerator(SingleClassGenerator generator)
Sets the current caller of this strategy implementation. This can be used to change the state of the calling object as a result of a strategy implementation.

Specified by:
setSingleClassGenerator in interface ClassNameCRStrategy
Parameters:
generator - the current caller of this strategy implementation.
See Also:
#setSingleClassGenerator(org.exolab.castor.builder.SingleClassGenerator)

getSingleClassGenerator

protected final SingleClassGenerator getSingleClassGenerator()
Returns the current caller of this strategy implementation. This can be used to change the state of the calling object as a result of a strategy implementation.

Returns:
the current caller of this strategy implementation.


Copyright © 2011. All Rights Reserved.