Class featureconfigValidator
- java.lang.Object
-
- org.eclipse.emf.ecore.util.EObjectValidator
-
- de.uka.ipd.sdq.featureconfig.util.featureconfigValidator
-
- All Implemented Interfaces:
EValidator
public class featureconfigValidator extends EObjectValidator
The Validator for the model.- See Also:
featureconfigPackage- 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
Fields Modifier and Type Field Description static intCONFIG_NODE__CHECK_MULTIPLICITY_OF_FEATURE_GROUPThecodefor constraint 'Check Multiplicity Of Feature Group' of 'Config Node'.static intCONFIG_NODE__CONFIG_CARDINALITY_INVALIDThecodefor constraint 'Config Cardinality Invalid' of 'Config Node'.protected static intDIAGNOSTIC_CODE_COUNTA constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.static StringDIAGNOSTIC_SOURCEstatic intDOUBLE_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_DOUBLEThecodefor constraint 'Attribute Value Is Defined In Feature And Equals Type Double' of 'Double Attribute Value'.static intEXTERNAL_OBJECT_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_EXTERNAL_OBJECTThecodefor constraint 'Attribute Value Is Defined In Feature And Equals Type External Object' of 'External Object Attribute Value'.static featureconfigValidatorINSTANCEThe cached model packagestatic intINTEGER_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_INTEGERThecodefor constraint 'Attribute Value Is Defined In Feature And Equals Type Integer' of 'Integer Attribute Value'.static intSTRING_ATTRIBUTE_VALUE__ATTRIBUTE_VALUE_IS_DEFINED_IN_FEATURE_AND_EQUALS_TYPE_STRINGThecodefor 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
Constructors Constructor Description featureconfigValidator()Creates an instance of the switch.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected EPackagegetEPackage()Returns the package of this validator switch.ResourceLocatorgetResourceLocator()Returns the resource locator that will be used to fetch messages for this validator's diagnostics.protected booleanvalidate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object,Object> context)CallsvalidateXXXfor the corresponding classifier of the model.booleanvalidateAttributeValue(AttributeValue attributeValue, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateConfigNode(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateConfigNode_CheckMultiplicityOfFeatureGroup(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object,Object> context)Validates the CheckMultiplicityOfFeatureGroup constraint of 'Config Node'.booleanvalidateConfigNode_ConfigCardinalityInvalid(ConfigNode configNode, DiagnosticChain diagnostics, Map<Object,Object> context)Validates the ConfigCardinalityInvalid constraint of 'Config Node'.booleanvalidateConfigState(ConfigState configState, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateConfiguration(Configuration configuration, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateDoubleAttributeValue(DoubleAttributeValue doubleAttributeValue, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateDoubleAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeDouble(DoubleAttributeValue doubleAttributeValue, DiagnosticChain diagnostics, Map<Object,Object> context)Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeDouble constraint of 'Double Attribute Value'.booleanvalidateExternalObjectAttributeValue(ExternalObjectAttributeValue externalObjectAttributeValue, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateExternalObjectAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeExternalObject(ExternalObjectAttributeValue externalObjectAttributeValue, DiagnosticChain diagnostics, Map<Object,Object> context)Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeExternalObject constraint of 'External Object Attribute Value'.booleanvalidateFeatureConfig(FeatureConfig featureConfig, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateFeatureConfigState(FeatureConfigState featureConfigState, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateIntegerAttributeValue(IntegerAttributeValue integerAttributeValue, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateIntegerAttributeValue_AttributeValueIsDefinedInFeatureAndEqualsTypeInteger(IntegerAttributeValue integerAttributeValue, DiagnosticChain diagnostics, Map<Object,Object> context)Validates the AttributeValueIsDefinedInFeatureAndEqualsTypeInteger constraint of 'Integer Attribute Value'.booleanvalidateStringAttributeValue(StringAttributeValue stringAttributeValue, DiagnosticChain diagnostics, Map<Object,Object> context)booleanvalidateStringAttributeValue_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 Detail
-
INSTANCE
public static final featureconfigValidator INSTANCE
The cached model package- Generated class or method.
-
DIAGNOSTIC_SOURCE
public static final String DIAGNOSTIC_SOURCE
- See Also:
Diagnostic.getSource(),Diagnostic.getCode(), Constant Field Values- Generated class or method.
-
CONFIG_NODE__CONFIG_CARDINALITY_INVALID
public static final int CONFIG_NODE__CONFIG_CARDINALITY_INVALID
Thecodefor constraint 'Config Cardinality Invalid' of 'Config Node'.- See Also:
- Constant Field Values
- Generated class or method.
-
CONFIG_NODE__CHECK_MULTIPLICITY_OF_FEATURE_GROUP
public static final int CONFIG_NODE__CHECK_MULTIPLICITY_OF_FEATURE_GROUP
Thecodefor constraint 'Check Multiplicity Of Feature Group' of 'Config Node'.- See Also:
- Constant Field Values
- 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_INTEGER
Thecodefor constraint 'Attribute Value Is Defined In Feature And Equals Type Integer' of 'Integer Attribute Value'.- See Also:
- Constant Field Values
- 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_DOUBLE
Thecodefor constraint 'Attribute Value Is Defined In Feature And Equals Type Double' of 'Double Attribute Value'.- See Also:
- Constant Field Values
- 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_STRING
Thecodefor constraint 'Attribute Value Is Defined In Feature And Equals Type String' of 'String Attribute Value'.- See Also:
- Constant Field Values
- 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_OBJECT
Thecodefor constraint 'Attribute Value Is Defined In Feature And Equals Type External Object' of 'External Object Attribute Value'.- See Also:
- Constant Field Values
- Generated class or method.
-
DIAGNOSTIC_CODE_COUNT
protected static final int DIAGNOSTIC_CODE_COUNT
A constant with a fixed name that can be used as the base value for additional hand written constants in a derived class.- See Also:
- Constant Field Values
- Generated class or method.
-
-
Method Detail
-
getEPackage
protected EPackage 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.
-
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
public ResourceLocator getResourceLocator()
Returns the resource locator that will be used to fetch messages for this validator's diagnostics.- Overrides:
getResourceLocatorin classEObjectValidator- Generated class or method.
-
-