Class BaseClassNameCRStrategy
java.lang.Object
org.exolab.castor.builder.conflictresolution.BaseClassNameCRStrategy
- All Implemented Interfaces:
ClassNameCRStrategy
- Direct Known Subclasses:
InformViaLogClassNameCRStrategy, WarningViaDialogClassNameCRStrategy
Abtract base class for all
ClassNameCRStrategy implementations.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final SingleClassGeneratorReturns the current caller of this strategy implementation.final voidsetSingleClassGenerator(SingleClassGenerator generator) Sets the current caller of this strategy implementation.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClassNameCRStrategy
dealWithClassNameConflict, dealWithFileOverwrite, getName, setConsoleDialogModifier and TypeMethodDescriptiondealWithClassNameConflict(SGStateInfo state, ClassInfo newClassInfo, JClass conflict) Implements a specific strategy for dealing with class name conflicts.booleandealWithFileOverwrite(String filename) Implements a specific strategy for dealing with the fact that -- for a given file name -- an artifact with the same name already exists.getName()Returns the name of this strategy.voidsetConsoleDialog(ConsoleDialog dialog) Sets theConsoleDialoginstance to use (if required).
-
Constructor Details
-
BaseClassNameCRStrategy
public BaseClassNameCRStrategy()
-
-
Method Details
-
setSingleClassGenerator
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:
setSingleClassGeneratorin interfaceClassNameCRStrategy- Parameters:
generator- the current caller of this strategy implementation.- See Also:
-
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.
-