org.eclipse.xtext.validation
Class AbstractValidationMessageAcceptor

java.lang.Object
  extended by org.eclipse.xtext.validation.AbstractValidationMessageAcceptor
All Implemented Interfaces:
ValidationMessageAcceptor

public abstract class AbstractValidationMessageAcceptor
extends java.lang.Object
implements ValidationMessageAcceptor

Abstract base class for partial message acceptor implementations. Implements all methods as no-op.


Field Summary
 
Fields inherited from interface org.eclipse.xtext.validation.ValidationMessageAcceptor
INSIGNIFICANT_INDEX
 
Constructor Summary
AbstractValidationMessageAcceptor()
           
 
Method Summary
 void acceptError(java.lang.String message, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int index, java.lang.String code, java.lang.String... issueData)
          Annotate an instance, a feature value, or all feature values with an error.
 void acceptError(java.lang.String message, org.eclipse.emf.ecore.EObject object, int offset, int length, java.lang.String code, java.lang.String... issueData)
          Annotate a range of the resource with an error.
 void acceptInfo(java.lang.String message, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int index, java.lang.String code, java.lang.String... issueData)
          Annotate an instance, a feature value, or all feature values with an info message.
 void acceptInfo(java.lang.String message, org.eclipse.emf.ecore.EObject object, int offset, int length, java.lang.String code, java.lang.String... issueData)
          Annotate a range of the resource with an info message..
 void acceptWarning(java.lang.String message, org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EStructuralFeature feature, int index, java.lang.String code, java.lang.String... issueData)
          Annotate an instance, a feature value, or all feature values with a warning.
 void acceptWarning(java.lang.String message, org.eclipse.emf.ecore.EObject object, int offset, int length, java.lang.String code, java.lang.String... issueData)
          Annotate a range of the resource with a warning.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractValidationMessageAcceptor

public AbstractValidationMessageAcceptor()
Method Detail

acceptError

public void acceptError(java.lang.String message,
                        org.eclipse.emf.ecore.EObject object,
                        org.eclipse.emf.ecore.EStructuralFeature feature,
                        int index,
                        java.lang.String code,
                        java.lang.String... issueData)
Description copied from interface: ValidationMessageAcceptor
Annotate an instance, a feature value, or all feature values with an error.

Specified by:
acceptError in interface ValidationMessageAcceptor
Parameters:
message - the error message. May not be null.
object - the object or the feature holder. May not be null.
feature - the feature or null if the complete instance should be annotated.
code - the optional issue code.
issueData - the optional issue data.

acceptError

public void acceptError(java.lang.String message,
                        org.eclipse.emf.ecore.EObject object,
                        int offset,
                        int length,
                        java.lang.String code,
                        java.lang.String... issueData)
Description copied from interface: ValidationMessageAcceptor
Annotate a range of the resource with an error.

Specified by:
acceptError in interface ValidationMessageAcceptor
Parameters:
message - the error message. May not be null.
offset - the absolute offset in the resource.
length - the length of the erroneous range.
code - the optional issue code.
issueData - the optional issue data.

acceptWarning

public void acceptWarning(java.lang.String message,
                          org.eclipse.emf.ecore.EObject object,
                          org.eclipse.emf.ecore.EStructuralFeature feature,
                          int index,
                          java.lang.String code,
                          java.lang.String... issueData)
Description copied from interface: ValidationMessageAcceptor
Annotate an instance, a feature value, or all feature values with a warning.

Specified by:
acceptWarning in interface ValidationMessageAcceptor
Parameters:
message - the warning message. May not be null.
object - the object or the feature holder. May not be null.
feature - the feature or null if the complete instance should be annotated.
code - the optional issue code.
issueData - the optional issue data.

acceptWarning

public void acceptWarning(java.lang.String message,
                          org.eclipse.emf.ecore.EObject object,
                          int offset,
                          int length,
                          java.lang.String code,
                          java.lang.String... issueData)
Description copied from interface: ValidationMessageAcceptor
Annotate a range of the resource with a warning.

Specified by:
acceptWarning in interface ValidationMessageAcceptor
Parameters:
message - the warning message. May not be null.
offset - the absolute offset in the resource.
length - the length of the invalid range.
code - the optional issue code.
issueData - the optional issue data.

acceptInfo

public void acceptInfo(java.lang.String message,
                       org.eclipse.emf.ecore.EObject object,
                       org.eclipse.emf.ecore.EStructuralFeature feature,
                       int index,
                       java.lang.String code,
                       java.lang.String... issueData)
Description copied from interface: ValidationMessageAcceptor
Annotate an instance, a feature value, or all feature values with an info message.

Specified by:
acceptInfo in interface ValidationMessageAcceptor
Parameters:
message - the info message. May not be null.
object - the object or the feature holder. May not be null.
feature - the feature or null if the complete instance should be annotated.
code - the optional issue code.
issueData - the optional issue data.

acceptInfo

public void acceptInfo(java.lang.String message,
                       org.eclipse.emf.ecore.EObject object,
                       int offset,
                       int length,
                       java.lang.String code,
                       java.lang.String... issueData)
Description copied from interface: ValidationMessageAcceptor
Annotate a range of the resource with an info message..

Specified by:
acceptInfo in interface ValidationMessageAcceptor
Parameters:
message - the info message. May not be null.
offset - the absolute offset in the resource.
length - the length of the annotated range.
code - the optional issue code.
issueData - the optional issue data.