Class BaseClassNameConflictResolver
java.lang.Object
org.exolab.castor.builder.conflict.strategy.BaseClassNameConflictResolver
- All Implemented Interfaces:
ClassNameConflictResolver
- Direct Known Subclasses:
TypeClassNameConflictResolver,XPATHClassNameConflictResolver
public abstract class BaseClassNameConflictResolver
extends Object
implements ClassNameConflictResolver
Base class for class name conflict resolver implementations.
- Author:
- Werner Guttmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcalculateXPathPrefix(String xpath) Calculate XPath prefix.abstract voidchangeClassInfoAsResultOfConflict(JClass jClass, String xpath, String typedXPath, Annotated annotated) Changes the JClass' internal class name, as a result of an XPATH expression uniquely identifying an XML artefact within an XML schema.protected SourceGeneratorReturns the callingSourceGeneratorinstance.voidsetSourceGenerator(SourceGenerator sourceGenerator) Sets the callingSourceGeneratorinstance.
-
Constructor Details
-
BaseClassNameConflictResolver
public BaseClassNameConflictResolver()
-
-
Method Details
-
changeClassInfoAsResultOfConflict
public abstract void changeClassInfoAsResultOfConflict(JClass jClass, String xpath, String typedXPath, Annotated annotated) Changes the JClass' internal class name, as a result of an XPATH expression uniquely identifying an XML artefact within an XML schema.- Specified by:
changeClassInfoAsResultOfConflictin interfaceClassNameConflictResolver- Parameters:
jClass- TheJClassinstance whose local name should be changed.xpath- XPATH expression used to defer the new local class nametypedXPath- typed XPATH expression used to defer the new local class nameannotated-Annotatedinstance
-
calculateXPathPrefix
-
setSourceGenerator
Sets the callingSourceGeneratorinstance.- Specified by:
setSourceGeneratorin interfaceClassNameConflictResolver- Parameters:
sourceGenerator- The callingSourceGeneratorinstance.
-
getSourceGenerator
Returns the callingSourceGeneratorinstance.- Returns:
- the calling
SourceGeneratorinstance
-