diff options
author | Brian Vosburgh | 2013-02-22 01:29:33 +0000 |
---|---|---|
committer | Brian Vosburgh | 2013-02-22 01:35:09 +0000 |
commit | 536cb65551f738e3442e8057f584b36a0a507840 (patch) | |
tree | c547f26a30e596691bc755e7172bc4fdb6412930 /jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaElementFactoryMethod.java | |
parent | 50f7313d6b9cd3291af17984069ad8b0e681b95a (diff) | |
download | webtools.dali-536cb65551f738e3442e8057f584b36a0a507840.tar.gz webtools.dali-536cb65551f738e3442e8057f584b36a0a507840.tar.xz webtools.dali-536cb65551f738e3442e8057f584b36a0a507840.zip |
move default severity into ValidationMessage
Diffstat (limited to 'jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaElementFactoryMethod.java')
-rw-r--r-- | jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaElementFactoryMethod.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaElementFactoryMethod.java b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaElementFactoryMethod.java index d1474af7a8..918c75dba8 100644 --- a/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaElementFactoryMethod.java +++ b/jaxb/plugins/org.eclipse.jpt.jaxb.core/src/org/eclipse/jpt/jaxb/core/internal/context/java/GenericJavaElementFactoryMethod.java @@ -212,7 +212,7 @@ public class GenericJavaElementFactoryMethod if (resourceMethod.getParametersSize() != 1) { messages.add( - this.buildErrorValidationMessage( + this.buildValidationMessage( getValidationTextRange(), JptJaxbCoreValidationMessages.XML_ELEMENT_DECL__INVALID_METHOD_SIGNATURE_PARAM )); @@ -224,7 +224,7 @@ public class GenericJavaElementFactoryMethod if (! JAXB.JAXB_ELEMENT.equals(resourceMethod.getTypeBinding().getQualifiedName())) { messages.add( - this.buildErrorValidationMessage( + this.buildValidationMessage( getValidationTextRange(), JptJaxbCoreValidationMessages.XML_ELEMENT_DECL__INVALID_METHOD_SIGNATURE_RETURN_TYPE )); @@ -388,7 +388,7 @@ public class GenericJavaElementFactoryMethod // need to ignore the unspecified (null) case if ("".equals(getName())) { messages.add( - this.buildErrorValidationMessage( + this.buildValidationMessage( getNameTextRange(), JptJaxbCoreValidationMessages.QNAME__MISSING_NAME, getReferencedComponentTypeDescription())); @@ -396,7 +396,7 @@ public class GenericJavaElementFactoryMethod else if (! StringTools.isBlank(getName())) { if (ObjectTools.equals(getName(), GenericJavaElementFactoryMethod.this.getQName().getName())) { messages.add( - this.buildErrorValidationMessage( + this.buildValidationMessage( getNameTextRange(), JptJaxbCoreValidationMessages.XML_ELEMENT_DECL__SUBST_HEAD_NAME_EQUALS_NAME )); @@ -420,7 +420,7 @@ public class GenericJavaElementFactoryMethod } } messages.add( - this.buildErrorValidationMessage( + this.buildValidationMessage( getValidationTextRange(), JptJaxbCoreValidationMessages.XML_ELEMENT_DECL__SUBST_HEAD_NO_MATCHING_ELEMENT_DECL, getNamespace(), |