Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/AbstractJavaTypeMapping.java')
-rw-r--r--jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/AbstractJavaTypeMapping.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/AbstractJavaTypeMapping.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/AbstractJavaTypeMapping.java
index 882143908f..5c59d92fe5 100644
--- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/AbstractJavaTypeMapping.java
+++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/AbstractJavaTypeMapping.java
@@ -338,20 +338,20 @@ public abstract class AbstractJavaTypeMapping
// ***** validation *****
@Override
- public TextRange getValidationTextRange(CompilationUnit astRoot) {
- TextRange textRange = getXmlTypeAnnotation().getTextRange(astRoot);
- return (textRange != null) ? textRange : getJaxbType().getValidationTextRange(astRoot);
+ public TextRange getValidationTextRange() {
+ TextRange textRange = getXmlTypeAnnotation().getTextRange();
+ return (textRange != null) ? textRange : getJaxbType().getValidationTextRange();
}
@Override
- public void validate(List<IMessage> messages, IReporter reporter, CompilationUnit astRoot) {
- super.validate(messages, reporter, astRoot);
+ public void validate(List<IMessage> messages, IReporter reporter) {
+ super.validate(messages, reporter);
if (! this.xmlTransient) {
- this.qName.validate(messages, reporter, astRoot);
+ this.qName.validate(messages, reporter);
if (this.xmlRootElement != null) {
- this.xmlRootElement.validate(messages, reporter, astRoot);
+ this.xmlRootElement.validate(messages, reporter);
}
}
}
@@ -436,7 +436,7 @@ public abstract class AbstractJavaTypeMapping
}
@Override
- protected void validateName(List<IMessage> messages, IReporter reporter, CompilationUnit astRoot) {
+ protected void validateName(List<IMessage> messages, IReporter reporter) {
// do not call super... - it is not an error if the name is ""
// if name is absent (""), namespace cannot be different from package namespace
if ("".equals(getName())
@@ -453,7 +453,7 @@ public abstract class AbstractJavaTypeMapping
}
@Override
- protected void validateReference(List<IMessage> messages, IReporter reporter, CompilationUnit astRoot) {
+ protected void validateReference(List<IMessage> messages, IReporter reporter) {
// if name is not absent (""), type must be from schema associated with this package
String name = getName();
String namespace = getNamespace();
@@ -463,7 +463,7 @@ public abstract class AbstractJavaTypeMapping
if (schema != null) {
XsdTypeDefinition schemaType = schema.getTypeDefinition(namespace, name);
if (schemaType == null) {
- messages.add(getUnresolveSchemaComponentMessage(astRoot));
+ messages.add(getUnresolveSchemaComponentMessage());
}
}
}

Back to the top