Class featureconfigValidator
java.lang.Object
org.eclipse.emf.ecore.util.EObjectValidator
de.uka.ipd.sdq.featureconfig.util.featureconfigValidator
- 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 TypeFieldDescriptionstatic final int
Thecode
for constraint 'Check Multiplicity Of Feature Group' of 'Config Node'.static final int
Thecode
for constraint 'Config Cardinality Invalid' of 'Config Node'.protected 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 'Attribute Value Is Defined In Feature And Equals Type Double' of 'Double Attribute Value'.static final int
Thecode
for constraint 'Attribute Value Is Defined In Feature And Equals Type External Object' of 'External Object Attribute Value'.static final featureconfigValidator
The cached model packagestatic final int
Thecode
for constraint 'Attribute Value Is Defined In Feature And Equals Type Integer' of 'Integer Attribute Value'.static final int
Thecode
for constraint 'Attribute Value Is Defined In Feature And Equals Type String' of 'String Attribute Value'.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
validateAttributeValue
(AttributeValue attributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateConfigNode
(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateConfigNode_CheckMultiplicityOfFeatureGroup
(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the CheckMultiplicityOfFeatureGroup constraint of 'Config Node'.boolean
validateConfigNode_ConfigCardinalityInvalid
(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the ConfigCardinalityInvalid constraint of 'Config Node'.boolean
validateConfigState
(ConfigState configState, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateConfiguration
(Configuration configuration, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDoubleAttributeValue
(DoubleAttributeValue doubleAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateDoubleAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeDouble
(DoubleAttributeValue doubleAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeDouble constraint of 'Double Attribute Value'.boolean
validateExternalObjectAttributeValue
(ExternalObjectAttributeValue externalObjectAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateExternalObjectAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeExternalObject
(ExternalObjectAttributeValue externalObjectAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeExternalObject constraint of 'External Object Attribute Value'.boolean
validateFeatureConfig
(FeatureConfig featureConfig, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateFeatureConfigState
(FeatureConfigState featureConfigState, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateIntegerAttributeValue
(IntegerAttributeValue integerAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateIntegerAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeInteger
(IntegerAttributeValue integerAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeInteger constraint of 'Integer Attribute Value'.boolean
validateStringAttributeValue
(StringAttributeValue stringAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) boolean
validateStringAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeString
(StringAttributeValue stringAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeString constraint of 'String Attribute Value'.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.
-
CONFIG_NODE__CONFIG_CARDINALITY_INVALID
public static final int CONFIG_NODE__CONFIG_CARDINALITY_INVALIDThecode
for constraint 'Config Cardinality Invalid' of 'Config Node'.- See Also:
- Generated class or method.
-
CONFIG_NODE__CHECK_MULTIPLICITY_OF_FEATURE_GROUP
public static final int CONFIG_NODE__CHECK_MULTIPLICITY_OF_FEATURE_GROUPThecode
for constraint 'Check Multiplicity Of Feature Group' of 'Config Node'.- See Also:
- Generated class or method.
-
INTEGER_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_INTEGER
public static final int INTEGER_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_INTEGERThecode
for constraint 'Attribute Value Is Defined In Feature And Equals Type Integer' of 'Integer Attribute Value'.- See Also:
- Generated class or method.
-
DOUBLE_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_DOUBLE
public static final int DOUBLE_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_DOUBLEThecode
for constraint 'Attribute Value Is Defined In Feature And Equals Type Double' of 'Double Attribute Value'.- See Also:
- Generated class or method.
-
STRING_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_STRING
public static final int STRING_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_STRINGThecode
for constraint 'Attribute Value Is Defined In Feature And Equals Type String' of 'String Attribute Value'.- See Also:
- Generated class or method.
-
EXTERNAL_OBJECT_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_EXTERNAL_OBJECT
public static final int EXTERNAL_OBJECT_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_EXTERNAL_OBJECTThecode
for constraint 'Attribute Value Is Defined In Feature And Equals Type External Object' of 'External Object Attribute Value'.- 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
-
featureconfigValidator
public featureconfigValidator()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.
-
validateConfigNode
public boolean validateConfigNode(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateConfigNode_ConfigCardinalityInvalid
public boolean validateConfigNode_ConfigCardinalityInvalid(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the ConfigCardinalityInvalid constraint of 'Config Node'.- Generated class or method.
-
validateConfigNode_CheckMultiplicityOfFeatureGroup
public boolean validateConfigNode_CheckMultiplicityOfFeatureGroup(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the CheckMultiplicityOfFeatureGroup constraint of 'Config Node'.- Generated class or method.
-
validateAttributeValue
public boolean validateAttributeValue(AttributeValue attributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateFeatureConfig
public boolean validateFeatureConfig(FeatureConfig featureConfig, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateConfiguration
public boolean validateConfiguration(Configuration configuration, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateIntegerAttributeValue
public boolean validateIntegerAttributeValue(IntegerAttributeValue integerAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateIntegerAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeInteger
public boolean validateIntegerAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeInteger(IntegerAttributeValue integerAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeInteger constraint of 'Integer Attribute Value'.- Generated class or method.
-
validateDoubleAttributeValue
public boolean validateDoubleAttributeValue(DoubleAttributeValue doubleAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateDoubleAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeDouble
public boolean validateDoubleAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeDouble(DoubleAttributeValue doubleAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeDouble constraint of 'Double Attribute Value'.- Generated class or method.
-
validateStringAttributeValue
public boolean validateStringAttributeValue(StringAttributeValue stringAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateStringAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeString
public boolean validateStringAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeString(StringAttributeValue stringAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeString constraint of 'String Attribute Value'.- Generated class or method.
-
validateExternalObjectAttributeValue
public boolean validateExternalObjectAttributeValue(ExternalObjectAttributeValue externalObjectAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateExternalObjectAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeExternalObject
public boolean validateExternalObjectAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeExternalObject(ExternalObjectAttributeValue externalObjectAttributeValue, DiagnosticChain diagnostics, Map<Object, Object> context) Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeExternalObject constraint of 'External Object Attribute Value'.- Generated class or method.
-
validateConfigState
public boolean validateConfigState(ConfigState configState, DiagnosticChain diagnostics, Map<Object, Object> context) - Generated class or method.
-
validateFeatureConfigState
public boolean validateFeatureConfigState(FeatureConfigState featureConfigState, 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.
-