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.DynamicEDataTypeValidatorNested classes/interfaces inherited from interface org.eclipse.emf.ecore.EValidator
EValidator.Descriptor, EValidator.PatternMatcher, EValidator.Registry, EValidator.SubstitutionLabelProvider, EValidator.ValidationDelegate -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final intA constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.static final Stringstatic final intThecodefor constraint 'ORDER can only exist with RELATIONSEMANTICS and vice versa' of 'Dimension Type Enum'.static final intThecodefor constraint 'NUMERICDIMENSIONTYPE must have RELATIONSEMANTICS' of 'Dimension Type Numeric'.static final intThecodefor constraint 'ORDER can only exist with RELATIONSEMANTICS' of 'Dimension Type Set'.static final QMLContractTypeValidatorThe cached model packagestatic final intThecodefor constraint 'UPPERLIMIT must be greater than LOWERLIMIT' of 'Numeric Range'.static final intThecodefor 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_OBJECTFields inherited from interface org.eclipse.emf.ecore.EValidator
MARKER, RELATED_URIS_ATTRIBUTE, URI_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected EPackageReturns the package of this validator switch.Returns the resource locator that will be used to fetch messages for this validator's diagnostics.protected booleanCallsvalidateXXXfor the corresponding classifier of the model.booleanvalidateDimension(Dimension dimension, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateDimensionType(DimensionType dimensionType, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateDimensionTypeEnum(DimensionTypeEnum dimensionTypeEnum, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateDimensionTypeEnum_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'.booleanvalidateDimensionTypeNumeric(DimensionTypeNumeric dimensionTypeNumeric, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateDimensionTypeNumeric_NUMERICDIMENSIONTYPE_must_have_RELATIONSEMANTICS(DimensionTypeNumeric dimensionTypeNumeric, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the NUMERICDIMENSIONTYPE_must_have_RELATIONSEMANTICS constraint of 'Dimension Type Numeric'.booleanvalidateDimensionTypeRepository(DimensionTypeRepository dimensionTypeRepository, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateDimensionTypeScale(DimensionTypeScale<?> dimensionTypeScale, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateDimensionTypeSet(DimensionTypeSet dimensionTypeSet, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateDimensionTypeSet_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'.booleanvalidateElement(Element element, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateENumber(Number eNumber, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateEnumNumericDomain(EnumNumericDomain enumNumericDomain, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateEnumRelationSemantics(EnumRelationSemantics enumRelationSemantics, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateEScaleOfMeasure(EScaleOfMeasure eScaleOfMeasure, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateNumericRange(NumericRange numericRange, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateNumericRange_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'.booleanvalidateOrder(Order order, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateOrder_BIGGERELEMENT_must_not_be_SMALLELEMENT(Order order, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the BIGGERELEMENT_must_not_be_SMALLELEMENT constraint of 'Order'.booleanvalidateQMLContractType(QMLContractType qmlContractType, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateRelationSemantics(RelationSemantics relationSemantics, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateScaleElement(ScaleElement<?> scaleElement, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateUnit(Unit unit, DiagnosticChain diagnostics, Map<Object, Object> context) booleanvalidateUnitRepository(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_RELATIONSEMANTICSThecodefor 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_SMALLELEMENTThecodefor 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_VERSAThecodefor 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_RELATIONSEMANTICSThecodefor 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_LOWERLIMITThecodefor 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:
getEPackagein classEObjectValidator- Generated class or method.
-
validate
protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object, Object> context) CallsvalidateXXXfor the corresponding classifier of the model.- Overrides:
validatein 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:
getResourceLocatorin classEObjectValidator- Generated class or method.
-