Class FeatureObjectiveValidator

java.lang.Object
org.eclipse.emf.ecore.util.EObjectValidator
featureObjective.util.FeatureObjectiveValidator
All Implemented Interfaces:
EValidator

public class FeatureObjectiveValidator extends EObjectValidator
The Validator for the model.
See Also:
Generated class or method.
  • Field Details

    • INSTANCE

      public static final FeatureObjectiveValidator INSTANCE
      The cached model package
      Generated class or method.
    • DIAGNOSTIC_SOURCE

      public static final String DIAGNOSTIC_SOURCE
      A constant for the source of diagnostic codes from this package.
      See Also:
      Generated class or method.
    • FEATURE_GROUP__XO_ROR_OR_IMPLIES_CHILDREN_ARE_MANDATORY

      public static final int FEATURE_GROUP__XO_ROR_OR_IMPLIES_CHILDREN_ARE_MANDATORY
      The code for constraint 'XO Ror OR Implies Children Are Mandatory' of 'Feature Group'.
      See Also:
      Generated class or method.
    • FEATURE_GROUP__ALL_IMPLIES_CARDINALITIES_TO_BE_MINUS_ONE

      public static final int FEATURE_GROUP__ALL_IMPLIES_CARDINALITIES_TO_BE_MINUS_ONE
      The code for constraint 'ALL Implies Cardinalities To Be Minus One' of 'Feature Group'.
      See Also:
      Generated class or method.
    • FEATURE_GROUP__OR_IMPLIES_CARDINALITIES_MIN_TO_BE_ONE_AND_MAX_TO_BE_MINUS_ONE

      public static final int FEATURE_GROUP__OR_IMPLIES_CARDINALITIES_MIN_TO_BE_ONE_AND_MAX_TO_BE_MINUS_ONE
      The code for constraint 'OR Implies Cardinalities Min To Be One And Max To Be Minus One' of 'Feature Group'.
      See Also:
      Generated class or method.
    • FEATURE_GROUP__XOR_IMPLIES_CARDINALITIES_TO_BE_ONE

      public static final int FEATURE_GROUP__XOR_IMPLIES_CARDINALITIES_TO_BE_ONE
      The code for constraint 'XOR Implies Cardinalities To Be One' of 'Feature Group'.
      See Also:
      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:
      Generated class or method.
  • Constructor Details

    • FeatureObjectiveValidator

      public FeatureObjectiveValidator()
      Creates an instance of the switch.
      Generated class or method.
  • Method Details

    • getEPackage

      protected EPackage getEPackage()
      Returns the package of this validator switch.
      Overrides:
      getEPackage in class EObjectValidator
      Generated class or method.
    • validate

      protected boolean validate(int classifierID, Object value, DiagnosticChain diagnostics, Map<Object,Object> context)
      Calls validateXXX for the corresponding classifier of the model.
      Overrides:
      validate in class EObjectValidator
      Generated class or method.
    • validateFeatureObjective

      public boolean validateFeatureObjective(FeatureObjective featureObjective, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateFeature

      public boolean validateFeature(Feature feature, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateFeatureGroup

      public boolean validateFeatureGroup(FeatureGroup featureGroup, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateFeatureGroup_XORorORImpliesChildrenAreMandatory

      public boolean validateFeatureGroup_XORorORImpliesChildrenAreMandatory(FeatureGroup featureGroup, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the XORorORImpliesChildrenAreMandatory constraint of 'Feature Group'.
      Generated class or method.
    • validateFeatureGroup_ALLImpliesCardinalitiesToBeMinusOne

      public boolean validateFeatureGroup_ALLImpliesCardinalitiesToBeMinusOne(FeatureGroup featureGroup, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the ALLImpliesCardinalitiesToBeMinusOne constraint of 'Feature Group'.
      Generated class or method.
    • validateFeatureGroup_ORImpliesCardinalitiesMinToBeOneAndMaxToBeMinusOne

      public boolean validateFeatureGroup_ORImpliesCardinalitiesMinToBeOneAndMaxToBeMinusOne(FeatureGroup featureGroup, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the ORImpliesCardinalitiesMinToBeOneAndMaxToBeMinusOne constraint of 'Feature Group'.
      Generated class or method.
    • validateFeatureGroup_XORImpliesCardinalitiesToBeOne

      public boolean validateFeatureGroup_XORImpliesCardinalitiesToBeOne(FeatureGroup featureGroup, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the XORImpliesCardinalitiesToBeOne constraint of 'Feature Group'.
      Generated class or method.
    • validateConstraint

      public boolean validateConstraint(Constraint constraint, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateRequiredConstraint

      public boolean validateRequiredConstraint(RequiredConstraint requiredConstraint, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateProhibitsConstraint

      public boolean validateProhibitsConstraint(ProhibitsConstraint prohibitsConstraint, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateAttributeTypes

      public boolean validateAttributeTypes(AttributeTypes attributeTypes, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateLogicalOperation

      public boolean validateLogicalOperation(LogicalOperation logicalOperation, 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:
      getResourceLocator in class EObjectValidator
      Generated class or method.