public class DotRecordLabelJavaValidator extends AbstractDotRecordLabelJavaValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator.MethodWrapper, org.eclipse.xtext.validation.AbstractDeclarativeValidator.State, org.eclipse.xtext.validation.AbstractDeclarativeValidator.StateAccessorg.eclipse.emf.ecore.EValidator.Descriptor, org.eclipse.emf.ecore.EValidator.PatternMatcher, org.eclipse.emf.ecore.EValidator.Registry, org.eclipse.emf.ecore.EValidator.SubstitutionLabelProvider, org.eclipse.emf.ecore.EValidator.ValidationDelegate| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ISSUE_CODE_PREFIX
Snippet including the subgrammar issue code prefix
|
static java.lang.String |
PORT_NAME_DUPLICATE
Issue code for a duplicate port name error
|
static java.lang.String |
PORT_NAME_NOT_SET
Issue code for a unset port name warning
|
CURRENT_LANGUAGE_NAME, ISSUE_SEVERITIES| Constructor and Description |
|---|
DotRecordLabelJavaValidator() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkMultiplePortsNotSameName(org.eclipse.gef.dot.internal.language.recordlabel.RLabel label)
Checks that if a record based label has multiple ports none have the same
name
|
void |
checkPortNameIsNotNull(org.eclipse.gef.dot.internal.language.recordlabel.FieldID fieldID)
Checks that if a port is specified, it has a name which allows
referencing.
|
getEPackagesacceptError, acceptError, acceptInfo, acceptInfo, acceptWarning, acceptWarning, addIssue, addIssue, addIssue, addIssue, addIssue, addIssueToState, checkDone, checkIsFromCurrentlyCheckedResource, createDiagnostic, createDiagnostic, createMethodWrapper, error, error, error, error, error, error, error, error, getChain, getCheckMode, getContext, getCurrentMethod, getCurrentObject, getIssueSeverities, getMessageAcceptor, guard, info, info, info, info, info, info, info, info, internalValidate, isIgnored, newInstance, setInjector, setMessageAcceptor, toDiagnosticSeverity, warning, warning, warning, warning, warning, warning, warning, warningpublic static final java.lang.String ISSUE_CODE_PREFIX
public static final java.lang.String PORT_NAME_DUPLICATE
public static final java.lang.String PORT_NAME_NOT_SET
public void checkPortNameIsNotNull(org.eclipse.gef.dot.internal.language.recordlabel.FieldID fieldID)
fieldID - FieldID to be checked.public void checkMultiplePortsNotSameName(org.eclipse.gef.dot.internal.language.recordlabel.RLabel label)
label - RecordLabel to be checked.Copyright (c) 2014 itemis AG and others. All rights reserved.