Class XPATHClassNameConflictResolver
java.lang.Object
org.exolab.castor.builder.conflict.strategy.BaseClassNameConflictResolver
org.exolab.castor.builder.conflict.strategy.XPATHClassNameConflictResolver
- All Implemented Interfaces:
ClassNameConflictResolver
public class XPATHClassNameConflictResolver
extends BaseClassNameConflictResolver
implements ClassNameConflictResolver
Class name conflict resolver.
- Author:
- Werner Guttmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeClassInfoAsResultOfConflict(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.Methods inherited from class BaseClassNameConflictResolver
calculateXPathPrefix, getSourceGenerator, setSourceGeneratorModifier and TypeMethodDescriptionprotected StringcalculateXPathPrefix(String xpath) Calculate XPath prefix.protected SourceGeneratorReturns the callingSourceGeneratorinstance.voidsetSourceGenerator(SourceGenerator sourceGenerator) Sets the callingSourceGeneratorinstance.
-
Constructor Details
-
XPATHClassNameConflictResolver
public XPATHClassNameConflictResolver()
-
-
Method Details
-
changeClassInfoAsResultOfConflict
public 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- Specified by:
changeClassInfoAsResultOfConflictin classBaseClassNameConflictResolver- 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
-