public abstract class BaseClassNameConflictResolver extends Object implements ClassNameConflictResolver
| Constructor and Description |
|---|
BaseClassNameConflictResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected 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 |
getSourceGenerator()
Returns the calling
SourceGenerator instance. |
void |
setSourceGenerator(SourceGenerator sourceGenerator)
Sets the calling
SourceGenerator instance. |
public abstract void changeClassInfoAsResultOfConflict(JClass jClass, String xpath, String typedXPath, Annotated annotated)
changeClassInfoAsResultOfConflict in interface ClassNameConflictResolverjClass - The JClass 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 instanceprotected String calculateXPathPrefix(String xpath)
xpath - The XPath to be transformed into a class name prefixpublic void setSourceGenerator(SourceGenerator sourceGenerator)
SourceGenerator instance.setSourceGenerator in interface ClassNameConflictResolversourceGenerator - The calling SourceGenerator instance.protected SourceGenerator getSourceGenerator()
SourceGenerator instance.SourceGenerator instanceCopyright © 2016. All rights reserved.