public class DotSubgrammarValidationMessageAcceptor
extends java.lang.Object
implements org.eclipse.xtext.validation.ValidationMessageAcceptor
Constructor and Description |
---|
DotSubgrammarValidationMessageAcceptor(org.eclipse.gef.dot.internal.language.dot.Attribute attribute,
org.eclipse.emf.ecore.EStructuralFeature hostingFeature,
java.lang.String userReadableIdentifier,
org.eclipse.xtext.validation.ValidationMessageAcceptor hostMessageAcceptor,
int internalOffset)
Constructs a Validation Message acceptor to 'translate' issues while
validating a sub grammar.
|
Modifier and Type | Method and Description |
---|---|
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) |
void |
acceptError(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
int offset,
int length,
java.lang.String code,
java.lang.String... issueData) |
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) |
void |
acceptInfo(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
int offset,
int length,
java.lang.String code,
java.lang.String... issueData) |
void |
acceptSyntaxError(org.eclipse.xtext.nodemodel.INode error)
Helper Method to allow this message acceptor to handle syntax errors
issued while parsing the sub grammar as validation issues of the main
grammar.
|
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) |
void |
acceptWarning(java.lang.String message,
org.eclipse.emf.ecore.EObject object,
int offset,
int length,
java.lang.String code,
java.lang.String... issueData) |
public DotSubgrammarValidationMessageAcceptor(org.eclipse.gef.dot.internal.language.dot.Attribute attribute, org.eclipse.emf.ecore.EStructuralFeature hostingFeature, java.lang.String userReadableIdentifier, org.eclipse.xtext.validation.ValidationMessageAcceptor hostMessageAcceptor, int internalOffset)
attribute
- The attribute in the main grammar that hosts the sub grammarhostingFeature
- Can be null. If set, needs to be unique within hostingEObject
(not a list, ...).userReadableIdentifier
- A name for the sub grammar understood by the userhostMessageAcceptor
- The validationMessageAcceptor of the host grammarinternalOffset
- Offset from begin of featurepublic void acceptSyntaxError(org.eclipse.xtext.nodemodel.INode error)
error
- Error node from parsing.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)
acceptError
in interface org.eclipse.xtext.validation.ValidationMessageAcceptor
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)
acceptError
in interface org.eclipse.xtext.validation.ValidationMessageAcceptor
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)
acceptInfo
in interface org.eclipse.xtext.validation.ValidationMessageAcceptor
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)
acceptInfo
in interface org.eclipse.xtext.validation.ValidationMessageAcceptor
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)
acceptWarning
in interface org.eclipse.xtext.validation.ValidationMessageAcceptor
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)
acceptWarning
in interface org.eclipse.xtext.validation.ValidationMessageAcceptor
Copyright (c) 2014 itemis AG and others. All rights reserved.