Class QMLContractTypeValidator
java.lang.Object
org.eclipse.emf.ecore.util.EObjectValidator
de.uka.ipd.sdq.dsexplore.qml.contracttype.QMLContractType.util.QMLContractTypeValidator
- All Implemented Interfaces:
EValidator
The Validator for the model.
- See Also:
- Generated class or method.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.util.EObjectValidator
EObjectValidator.DynamicEClassValidator, EObjectValidator.DynamicEDataTypeValidator
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator
EValidator.Descriptor, EValidator.PatternMatcher, EValidator.Registry, EValidator.SubstitutionLabelProvider, EValidator.ValidationDelegate
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final int
A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.static final String
static final int
Thecode
for constraint 'ORDER can only exist with RELATIONSEMANTICS and vice versa' of 'Dimension Type Enum'.static final int
Thecode
for constraint 'NUMERICDIMENSIONTYPE must have RELATIONSEMANTICS' of 'Dimension Type Numeric'.static final int
Thecode
for constraint 'ORDER can only exist with RELATIONSEMANTICS' of 'Dimension Type Set'.static final QMLContractTypeValidator
The cached model packagestatic final int
Thecode
for constraint 'UPPERLIMIT must be greater than LOWERLIMIT' of 'Numeric Range'.static final int
Thecode
for constraint 'BIGGERELEMENT must not be SMALLELEMENT' of 'Order'.Fields inherited from class org.eclipse.emf.ecore.util.EObjectValidator
DATA_VALUE__FRACTION_DIGITS_IN_RANGE, DATA_VALUE__LENGTH_IN_RANGE, DATA_VALUE__MATCHES_PATTERN, DATA_VALUE__TOTAL_DIGITS_IN_RANGE, DATA_VALUE__TYPE_CORRECT, DATA_VALUE__VALUE_IN_ENUMERATION, DATA_VALUE__VALUE_IN_RANGE, EOBJECT__EVERY_BIDIRECTIONAL_REFERENCE_IS_PAIRED, EOBJECT__EVERY_DATA_VALUE_CONFORMS, EOBJECT__EVERY_KEY_UNIQUE, EOBJECT__EVERY_MAP_ENTRY_UNIQUE, EOBJECT__EVERY_MULTIPCITY_CONFORMS, EOBJECT__EVERY_PROXY_RESOLVES, EOBJECT__EVERY_REFERENCE_IS_CONTAINED, EOBJECT__NO_CIRCULAR_CONTAINMENT, EOBJECT__UNIQUE_ID, ROOT_OBJECT
Fields inherited from interface org.eclipse.emf.ecore.EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected EPackage
Returns the package of this validator switch.Returns the resource locator that will be used to fetch messages for this validator's diagnostics.protected boolean
CallsvalidateXXX
for the corresponding classifier of the model.boolean
validateDimension
(Dimension dimension, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDimensionType
(DimensionType dimensionType, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDimensionTypeEnum
(DimensionTypeEnum dimensionTypeEnum, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDimensionTypeEnum_ORDER_can_only_exist_with_RELATIONSEMANTICS_and_vice_versa
(DimensionTypeEnum dimensionTypeEnum, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the ORDER_can_only_exist_with_RELATIONSEMANTICS_and_vice_versa constraint of 'Dimension Type Enum'.boolean
validateDimensionTypeNumeric
(DimensionTypeNumeric dimensionTypeNumeric, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDimensionTypeNumeric_NUMERICDIMENSIONTYPE_must_have_RELATIONSEMANTICS
(DimensionTypeNumeric dimensionTypeNumeric, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the NUMERICDIMENSIONTYPE_must_have_RELATIONSEMANTICS constraint of 'Dimension Type Numeric'.boolean
validateDimensionTypeRepository
(DimensionTypeRepository dimensionTypeRepository, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDimensionTypeScale
(DimensionTypeScale<?> dimensionTypeScale, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDimensionTypeSet
(DimensionTypeSet dimensionTypeSet, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDimensionTypeSet_ORDER_can_only_exist_with_RELATIONSEMANTICS
(DimensionTypeSet dimensionTypeSet, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the ORDER_can_only_exist_with_RELATIONSEMANTICS constraint of 'Dimension Type Set'.boolean
validateElement
(Element element, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateENumber
(Number eNumber, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateEnumNumericDomain
(EnumNumericDomain enumNumericDomain, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateEnumRelationSemantics
(EnumRelationSemantics enumRelationSemantics, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateEScaleOfMeasure
(EScaleOfMeasure eScaleOfMeasure, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateNumericRange
(NumericRange numericRange, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateNumericRange_UPPERLIMIT_must_be_greater_than_LOWERLIMIT
(NumericRange numericRange, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the UPPERLIMIT_must_be_greater_than_LOWERLIMIT constraint of 'Numeric Range'.boolean
validateOrder
(Order order, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateOrder_BIGGERELEMENT_must_not_be_SMALLELEMENT
(Order order, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the BIGGERELEMENT_must_not_be_SMALLELEMENT constraint of 'Order'.boolean
validateQMLContractType
(QMLContractType qmlContractType, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateRelationSemantics
(RelationSemantics relationSemantics, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateScaleElement
(ScaleElement<?> scaleElement, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateUnit
(Unit unit, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateUnitRepository
(UnitRepository unitRepository, DiagnosticChain diagnostics, Map<Object, Object> context) Methods inherited from class org.eclipse.emf.ecore.util.EObjectValidator
createBadDataValueDiagnostic, createDiagnostic, getAvailableChoices, getEcoreResourceLocator, getEcoreString, getFeatureLabel, getObjectLabel, getRootEValidator, getString, getValidationDelegateRegistry, getValueLabel, isEcoreString, reportConstraintDelegateException, reportConstraintDelegateException, reportConstraintDelegateNotFound, reportConstraintDelegateNotFound, reportConstraintDelegateViolation, reportConstraintDelegateViolation, reportDataValuePatternViolation, reportDataValueTypeViolation, reportEnumerationViolation, reportFractionDigitsViolation, reportInvariantDelegateException, reportInvariantDelegateNotFound, reportInvariantDelegateViolation, reportMaxLengthViolation, reportMaxViolation, reportMinLengthViolation, reportMinViolation, reportTotalDigitsViolation, validate, validate, validate, validate, validate, validate, validate_BidirectionalReferenceIsPaired, validate_DataValueConforms, validate_EveryBidirectionalReferenceIsPaired, validate_EveryDataValueConforms, validate_EveryDefaultConstraint, validate_EveryKeyUnique, validate_EveryMapEntryUnique, validate_EveryMultiplicityConforms, validate_EveryProxyResolves, validate_EveryReferenceIsContained, validate_KeyUnique, validate_MapEntryUnique, validate_MultiplicityConforms, validate_NoCircularContainment, validate_UniqueID, validatePattern, wrapEnumerationValues
-
Field Details
-
INSTANCE
The cached model package- Generated class or method.
-
DIAGNOSTIC_SOURCE
- See Also:
- Generated class or method.
-
DIMENSION_TYPE_SET__ORDER_CAN_ONLY_EXIST_WITH_RELATIONSEMANTICS
public static final int DIMENSION_TYPE_SET__ORDER_CAN_ONLY_EXIST_WITH_RELATIONSEMANTICSThecode
for constraint 'ORDER can only exist with RELATIONSEMANTICS' of 'Dimension Type Set'.- See Also:
- Generated class or method.
-
ORDER__BIGGERELEMENT_MUST_NOT_BE_SMALLELEMENT
public static final int ORDER__BIGGERELEMENT_MUST_NOT_BE_SMALLELEMENTThecode
for constraint 'BIGGERELEMENT must not be SMALLELEMENT' of 'Order'.- See Also:
- Generated class or method.
-
DIMENSION_TYPE_ENUM__ORDER_CAN_ONLY_EXIST_WITH_RELATIONSEMANTICS_AND_VICE_VERSA
public static final int DIMENSION_TYPE_ENUM__ORDER_CAN_ONLY_EXIST_WITH_RELATIONSEMANTICS_AND_VICE_VERSAThecode
for constraint 'ORDER can only exist with RELATIONSEMANTICS and vice versa' of 'Dimension Type Enum'.- See Also:
- Generated class or method.
-
DIMENSION_TYPE_NUMERIC__NUMERICDIMENSIONTYPE_MUST_HAVE_RELATIONSEMANTICS
public static final int DIMENSION_TYPE_NUMERIC__NUMERICDIMENSIONTYPE_MUST_HAVE_RELATIONSEMANTICSThecode
for constraint 'NUMERICDIMENSIONTYPE must have RELATIONSEMANTICS' of 'Dimension Type Numeric'.- See Also:
- Generated class or method.
-
NUMERIC_RANGE__UPPERLIMIT_MUST_BE_GREATER_THAN_LOWERLIMIT
public static final int NUMERIC_RANGE__UPPERLIMIT_MUST_BE_GREATER_THAN_LOWERLIMITThecode
for constraint 'UPPERLIMIT must be greater than LOWERLIMIT' of 'Numeric Range'.- See Also:
- Generated class or method.
-
DIAGNOSTIC_CODE_COUNT
protected static final int DIAGNOSTIC_CODE_COUNTA constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.- See Also:
- Generated class or method.
-
-
Constructor Details
-
QMLContractTypeValidator
public QMLContractTypeValidator()Creates an instance of the switch.- Generated class or method.
-
-
Method Details
-
getEPackage
Returns the package of this validator switch.- Overrides:
getEPackage
in classEObjectValidator
- Generated class or method.
-
validate
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) CallsvalidateXXX
for the corresponding classifier of the model.- Overrides:
validate
in classEObjectValidator
- Generated class or method.
-
validateDimensionTypeSet
public boolean validateDimensionTypeSet(DimensionTypeSet dimensionTypeSet, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateDimensionTypeSet_ORDER_can_only_exist_with_RELATIONSEMANTICS
public boolean validateDimensionTypeSet_ORDER_can_only_exist_with_RELATIONSEMANTICS(DimensionTypeSet dimensionTypeSet, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the ORDER_can_only_exist_with_RELATIONSEMANTICS constraint of 'Dimension Type Set'.- Generated class or method.
-
validateDimensionType
public boolean validateDimensionType(DimensionType dimensionType, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateRelationSemantics
public boolean validateRelationSemantics(RelationSemantics relationSemantics, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateElement
public boolean validateElement(Element element, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateOrder
- Generated class or method.
-
validateOrder_BIGGERELEMENT_must_not_be_SMALLELEMENT
public boolean validateOrder_BIGGERELEMENT_must_not_be_SMALLELEMENT(Order order, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the BIGGERELEMENT_must_not_be_SMALLELEMENT constraint of 'Order'.- Generated class or method.
-
validateDimensionTypeEnum
public boolean validateDimensionTypeEnum(DimensionTypeEnum dimensionTypeEnum, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateDimensionTypeEnum_ORDER_can_only_exist_with_RELATIONSEMANTICS_and_vice_versa
public boolean validateDimensionTypeEnum_ORDER_can_only_exist_with_RELATIONSEMANTICS_and_vice_versa(DimensionTypeEnum dimensionTypeEnum, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the ORDER_can_only_exist_with_RELATIONSEMANTICS_and_vice_versa constraint of 'Dimension Type Enum'.- Generated class or method.
-
validateUnit
- Generated class or method.
-
validateDimensionTypeNumeric
public boolean validateDimensionTypeNumeric(DimensionTypeNumeric dimensionTypeNumeric, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateDimensionTypeNumeric_NUMERICDIMENSIONTYPE_must_have_RELATIONSEMANTICS
public boolean validateDimensionTypeNumeric_NUMERICDIMENSIONTYPE_must_have_RELATIONSEMANTICS(DimensionTypeNumeric dimensionTypeNumeric, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the NUMERICDIMENSIONTYPE_must_have_RELATIONSEMANTICS constraint of 'Dimension Type Numeric'.- Generated class or method.
-
validateNumericRange
public boolean validateNumericRange(NumericRange numericRange, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateNumericRange_UPPERLIMIT_must_be_greater_than_LOWERLIMIT
public boolean validateNumericRange_UPPERLIMIT_must_be_greater_than_LOWERLIMIT(NumericRange numericRange, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the UPPERLIMIT_must_be_greater_than_LOWERLIMIT constraint of 'Numeric Range'.- Generated class or method.
-
validateQMLContractType
public boolean validateQMLContractType(QMLContractType qmlContractType, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateUnitRepository
public boolean validateUnitRepository(UnitRepository unitRepository, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateDimensionTypeRepository
public boolean validateDimensionTypeRepository(DimensionTypeRepository dimensionTypeRepository, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateDimension
public boolean validateDimension(Dimension dimension, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateDimensionTypeScale
public boolean validateDimensionTypeScale(DimensionTypeScale<?> dimensionTypeScale, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateScaleElement
public boolean validateScaleElement(ScaleElement<?> scaleElement, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateEnumRelationSemantics
public boolean validateEnumRelationSemantics(EnumRelationSemantics enumRelationSemantics, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateEnumNumericDomain
public boolean validateEnumNumericDomain(EnumNumericDomain enumNumericDomain, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateEScaleOfMeasure
public boolean validateEScaleOfMeasure(EScaleOfMeasure eScaleOfMeasure, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateENumber
public boolean validateENumber(Number eNumber, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
getResourceLocator
Returns the resource locator that will be used to fetch messages for this validator's diagnostics.- Overrides:
getResourceLocator
in classEObjectValidator
- Generated class or method.
-