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 String
calculateXPathPrefix
(String xpath) Calculate XPath prefix.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.protected SourceGenerator
Returns the callingSourceGenerator
instance.void
setSourceGenerator
(SourceGenerator sourceGenerator) Sets the callingSourceGenerator
instance.
-
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:
changeClassInfoAsResultOfConflict
in interfaceClassNameConflictResolver
- Parameters:
jClass
- TheJClass
instance 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
-Annotated
instance
-
calculateXPathPrefix
-
setSourceGenerator
Sets the callingSourceGenerator
instance.- Specified by:
setSourceGenerator
in interfaceClassNameConflictResolver
- Parameters:
sourceGenerator
- The callingSourceGenerator
instance.
-
getSourceGenerator
Returns the callingSourceGenerator
instance.- Returns:
- the calling
SourceGenerator
instance
-