public class DotArrowTypeJavaValidator extends AbstractDotArrowTypeJavaValidator
org.eclipse.xtext.validation.AbstractDeclarativeValidator.MethodWrapper, org.eclipse.xtext.validation.AbstractDeclarativeValidator.State, org.eclipse.xtext.validation.AbstractDeclarativeValidator.StateAccess
org.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 |
DEPRECATED_ARROW_SHAPE
Issue code for a deprecated arrow shape.
|
static java.lang.String |
INVALID_ARROW_SHAPE_MODIFIER
Issue code for an invalid modifier.
|
static java.lang.String |
INVALID_ARROW_SHAPE_NONE_IS_THE_LAST
Issue code for an invalid arrow shape (none should not be the last arrow
shape).
|
CURRENT_LANGUAGE_NAME, ISSUE_SEVERITIES
Constructor and Description |
---|
DotArrowTypeJavaValidator() |
Modifier and Type | Method and Description |
---|---|
void |
checkDeprecatedArrowShape(org.eclipse.gef.dot.internal.language.arrowtype.DeprecatedArrowShape arrowShape)
Checks that no deprecated arrow shapes are used
|
void |
checkIfNoneIsTheLastArrowShape(org.eclipse.gef.dot.internal.language.arrowtype.ArrowType arrowType)
Checks whether none is the last arrow shape, since this would create a
redundant shape
|
void |
checkOpenModifier(org.eclipse.gef.dot.internal.language.arrowtype.ArrowShape arrowShape)
Checks that the open modifier is not used in combination with illegal
primitive shapes.
|
void |
checkSideModifier(org.eclipse.gef.dot.internal.language.arrowtype.ArrowShape arrowShape)
Checks that the side modifier is not used in combination with illegal
primitive shapes.
|
getEPackages
acceptError, 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, warning
public static final java.lang.String DEPRECATED_ARROW_SHAPE
public static final java.lang.String INVALID_ARROW_SHAPE_MODIFIER
public static final java.lang.String INVALID_ARROW_SHAPE_NONE_IS_THE_LAST
public void checkOpenModifier(org.eclipse.gef.dot.internal.language.arrowtype.ArrowShape arrowShape)
arrowShape
- The arrowShape element to check.public void checkSideModifier(org.eclipse.gef.dot.internal.language.arrowtype.ArrowShape arrowShape)
arrowShape
- The arrowShape element to check.public void checkDeprecatedArrowShape(org.eclipse.gef.dot.internal.language.arrowtype.DeprecatedArrowShape arrowShape)
arrowShape
- The arrowShape element to check.public void checkIfNoneIsTheLastArrowShape(org.eclipse.gef.dot.internal.language.arrowtype.ArrowType arrowType)
arrowType
- The arrowType element to check.Copyright (c) 2014 itemis AG and others. All rights reserved.