Class CompositionValidator

java.lang.Object
org.eclipse.emf.ecore.util.EObjectValidator
org.palladiosimulator.pcm.core.composition.util.CompositionValidator
All Implemented Interfaces:
EValidator

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

    • INSTANCE

      public static final CompositionValidator 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.
    • COMPOSED_STRUCTURE__VALIDATE_SAME_SUBSYSTEM_MUST_NOT_BE_INSTANTIATED_MORE_THAN_ONCE

      public static final int COMPOSED_STRUCTURE__VALIDATE_SAME_SUBSYSTEM_MUST_NOT_BE_INSTANTIATED_MORE_THAN_ONCE
      The code for constraint 'Validate Same Subsystem Must Not Be Instantiated More Than Once' of 'Composed Structure'.
      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.
    • identifierValidator

      protected de.uka.ipd.sdq.identifier.util.IdentifierValidator identifierValidator
      The cached base package validator.
      Generated class or method.
    • COMPOSED_STRUCTURE__MULTIPLE_CONNECTORS_CONSTRAINT__EEXPRESSION

      protected static final String COMPOSED_STRUCTURE__MULTIPLE_CONNECTORS_CONSTRAINT__EEXPRESSION
      The cached validation expression for the multipleConnectorsConstraint constraint of 'Composed Structure'.
      See Also:
      Generated class or method.
    • COMPOSED_STRUCTURE__MULTIPLE_CONNECTORS_CONSTRAINT_FOR_ASSEMBLY_CONNECTORS__EEXPRESSION

      protected static final String COMPOSED_STRUCTURE__MULTIPLE_CONNECTORS_CONSTRAINT_FOR_ASSEMBLY_CONNECTORS__EEXPRESSION
      The cached validation expression for the multipleConnectorsConstraintForAssemblyConnectors constraint of 'Composed Structure'.
      See Also:
      Generated class or method.
    • PROVIDED_DELEGATION_CONNECTOR__COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_PROVIDING_COMPONENT_NEED_TO_BE_THE_SAME__EEXPRESSION

      protected static final String PROVIDED_DELEGATION_CONNECTOR__COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_PROVIDING_COMPONENT_NEED_TO_BE_THE_SAME__EEXPRESSION
      The cached validation expression for the componentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame constraint of 'Provided Delegation Connector'.
      See Also:
      Generated class or method.
    • PROVIDED_DELEGATION_CONNECTOR__PROVIDED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__EEXPRESSION

      protected static final String PROVIDED_DELEGATION_CONNECTOR__PROVIDED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__EEXPRESSION
      The cached validation expression for the providedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure constraint of 'Provided Delegation Connector'.
      See Also:
      Generated class or method.
    • REQUIRED_DELEGATION_CONNECTOR__COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_REQUIRING_COMPONENT_NEED_TO_BE_THE_SAME__EEXPRESSION

      protected static final String REQUIRED_DELEGATION_CONNECTOR__COMPONENT_OF_ASSEMBLY_CONTEXT_AND_INNER_ROLE_REQUIRING_COMPONENT_NEED_TO_BE_THE_SAME__EEXPRESSION
      The cached validation expression for the componentOfAssemblyContextAndInnerRoleRequiringComponentNeedToBeTheSame constraint of 'Required Delegation Connector'.
      See Also:
      Generated class or method.
    • REQUIRED_DELEGATION_CONNECTOR__REQUIRING_ENTITY_OF_OUTER_REQUIRED_ROLE_MUST_BE_THE_SAME_AS_THE_PARENT_OF_THE_REQUIRED_DELEGATION_CONNECTOR__EEXPRESSION

      protected static final String REQUIRED_DELEGATION_CONNECTOR__REQUIRING_ENTITY_OF_OUTER_REQUIRED_ROLE_MUST_BE_THE_SAME_AS_THE_PARENT_OF_THE_REQUIRED_DELEGATION_CONNECTOR__EEXPRESSION
      The cached validation expression for the requiringEntityOfOuterRequiredRoleMustBeTheSameAsTheParentOfTheRequiredDelegationConnector constraint of 'Required Delegation Connector'.
      See Also:
      Generated class or method.
    • REQUIRED_DELEGATION_CONNECTOR__REQUIRED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__EEXPRESSION

      protected static final String REQUIRED_DELEGATION_CONNECTOR__REQUIRED_DELEGATION_CONNECTORANDTHECONNECTED_COMPONENTMUSTBEPARTOFTHESAMECOMPOSITESTRUCTURE__EEXPRESSION
      The cached validation expression for the requiredDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure constraint of 'Required Delegation Connector'.
      See Also:
      Generated class or method.
    • ASSEMBLY_CONNECTOR__ASSEMBLY_CONNECTORS_REFERENCED_PROVIDED_ROLES_AND_CHILD_CONTEXT_MUST_MATCH__EEXPRESSION

      protected static final String ASSEMBLY_CONNECTOR__ASSEMBLY_CONNECTORS_REFERENCED_PROVIDED_ROLES_AND_CHILD_CONTEXT_MUST_MATCH__EEXPRESSION
      The cached validation expression for the assemblyConnectorsReferencedProvidedRolesAndChildContextMustMatch constraint of 'Assembly Connector'.
      See Also:
      Generated class or method.
    • ASSEMBLY_CONNECTOR__ASSEMBLY_CONNECTORS_REFERENCED_REQUIRED_ROLE_AND_CHILD_CONTEXT_MUST_MATCH__EEXPRESSION

      protected static final String ASSEMBLY_CONNECTOR__ASSEMBLY_CONNECTORS_REFERENCED_REQUIRED_ROLE_AND_CHILD_CONTEXT_MUST_MATCH__EEXPRESSION
      The cached validation expression for the assemblyConnectorsReferencedRequiredRoleAndChildContextMustMatch constraint of 'Assembly Connector'.
      See Also:
      Generated class or method.
    • ASSEMBLY_CONNECTOR__ASSEMBLY_CONNECTORS_REFERENCED_INTERFACES_MUST_MATCH__EEXPRESSION

      protected static final String ASSEMBLY_CONNECTOR__ASSEMBLY_CONNECTORS_REFERENCED_INTERFACES_MUST_MATCH__EEXPRESSION
      The cached validation expression for the assemblyConnectorsReferencedInterfacesMustMatch constraint of 'Assembly Connector'.
      See Also:
      Generated class or method.
    • ASSEMBLY_INFRASTRUCTURE_CONNECTOR__REFERENCED_INFRASTRUCTURE_REQUIRED_ROLE_NOT_REQUIRED_BY_ASSEMBLY_CONTEXT__EEXPRESSION

      protected static final String ASSEMBLY_INFRASTRUCTURE_CONNECTOR__REFERENCED_INFRASTRUCTURE_REQUIRED_ROLE_NOT_REQUIRED_BY_ASSEMBLY_CONTEXT__EEXPRESSION
      The cached validation expression for the referencedInfrastructureRequiredRoleNotRequiredByAssemblyContext constraint of 'Assembly Infrastructure Connector'.
      See Also:
      Generated class or method.
    • ASSEMBLY_INFRASTRUCTURE_CONNECTOR__INFRASTRUCTURE_INTERFACES_NOT_COMPATIBLE__EEXPRESSION

      protected static final String ASSEMBLY_INFRASTRUCTURE_CONNECTOR__INFRASTRUCTURE_INTERFACES_NOT_COMPATIBLE__EEXPRESSION
      The cached validation expression for the InfrastructureInterfacesNotCompatible constraint of 'Assembly Infrastructure Connector'.
      See Also:
      Generated class or method.
    • ASSEMBLY_INFRASTRUCTURE_CONNECTOR__REFERENCED_INFRASTRUCTURE_PROVIDED_ROLE_NOT_PROVIDED_BY_ASSEMBLY_CONTEXT__EEXPRESSION

      protected static final String ASSEMBLY_INFRASTRUCTURE_CONNECTOR__REFERENCED_INFRASTRUCTURE_PROVIDED_ROLE_NOT_PROVIDED_BY_ASSEMBLY_CONTEXT__EEXPRESSION
      The cached validation expression for the referencedInfrastructureProvidedRoleNotProvidedByAssemblyContext constraint of 'Assembly Infrastructure Connector'.
      See Also:
      Generated class or method.
  • Constructor Details

    • CompositionValidator

      public CompositionValidator()
      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.
    • validateDelegationConnector

      public boolean validateDelegationConnector(DelegationConnector delegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateConnector

      public boolean validateConnector(Connector connector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateComposedStructure

      public boolean validateComposedStructure(ComposedStructure composedStructure, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateComposedStructure_multipleConnectorsConstraint

      public boolean validateComposedStructure_multipleConnectorsConstraint(ComposedStructure composedStructure, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the multipleConnectorsConstraint constraint of 'Composed Structure'.
      Generated class or method.
    • validateComposedStructure_multipleConnectorsConstraintForAssemblyConnectors

      public boolean validateComposedStructure_multipleConnectorsConstraintForAssemblyConnectors(ComposedStructure composedStructure, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the multipleConnectorsConstraintForAssemblyConnectors constraint of 'Composed Structure'.
      Generated class or method.
    • validateComposedStructure_validateSameSubsystemMustNotBeInstantiatedMoreThanOnce

      public boolean validateComposedStructure_validateSameSubsystemMustNotBeInstantiatedMoreThanOnce(ComposedStructure composedStructure, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the validateSameSubsystemMustNotBeInstantiatedMoreThanOnce constraint of 'Composed Structure'.
      Generated class or method.
    • validateResourceRequiredDelegationConnector

      public boolean validateResourceRequiredDelegationConnector(ResourceRequiredDelegationConnector resourceRequiredDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateEventChannel

      public boolean validateEventChannel(EventChannel eventChannel, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateEventChannelSourceConnector

      public boolean validateEventChannelSourceConnector(EventChannelSourceConnector eventChannelSourceConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateEventChannelSinkConnector

      public boolean validateEventChannelSinkConnector(EventChannelSinkConnector eventChannelSinkConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateProvidedDelegationConnector

      public boolean validateProvidedDelegationConnector(ProvidedDelegationConnector providedDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateProvidedDelegationConnector_componentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame

      public boolean validateProvidedDelegationConnector_componentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame(ProvidedDelegationConnector providedDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the componentOfAssemblyContextAndInnerRoleProvidingComponentNeedToBeTheSame constraint of 'Provided Delegation Connector'.
      Generated class or method.
    • validateProvidedDelegationConnector_providedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure

      public boolean validateProvidedDelegationConnector_providedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure(ProvidedDelegationConnector providedDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the providedDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure constraint of 'Provided Delegation Connector'.
      Generated class or method.
    • validateRequiredDelegationConnector

      public boolean validateRequiredDelegationConnector(RequiredDelegationConnector requiredDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateRequiredDelegationConnector_componentOfAssemblyContextAndInnerRoleRequiringComponentNeedToBeTheSame

      public boolean validateRequiredDelegationConnector_componentOfAssemblyContextAndInnerRoleRequiringComponentNeedToBeTheSame(RequiredDelegationConnector requiredDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the componentOfAssemblyContextAndInnerRoleRequiringComponentNeedToBeTheSame constraint of 'Required Delegation Connector'.
      Generated class or method.
    • validateRequiredDelegationConnector_requiringEntityOfOuterRequiredRoleMustBeTheSameAsTheParentOfTheRequiredDelegationConnector

      public boolean validateRequiredDelegationConnector_requiringEntityOfOuterRequiredRoleMustBeTheSameAsTheParentOfTheRequiredDelegationConnector(RequiredDelegationConnector requiredDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the requiringEntityOfOuterRequiredRoleMustBeTheSameAsTheParentOfTheRequiredDelegationConnector constraint of 'Required Delegation Connector'.
      Generated class or method.
    • validateRequiredDelegationConnector_requiredDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure

      public boolean validateRequiredDelegationConnector_requiredDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure(RequiredDelegationConnector requiredDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the requiredDelegationConnectorandtheconnectedComponentmustbepartofthesamecompositestructure constraint of 'Required Delegation Connector'.
      Generated class or method.
    • validateAssemblyConnector

      public boolean validateAssemblyConnector(AssemblyConnector assemblyConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateAssemblyConnector_assemblyConnectorsReferencedProvidedRolesAndChildContextMustMatch

      public boolean validateAssemblyConnector_assemblyConnectorsReferencedProvidedRolesAndChildContextMustMatch(AssemblyConnector assemblyConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the assemblyConnectorsReferencedProvidedRolesAndChildContextMustMatch constraint of 'Assembly Connector'.
      Generated class or method.
    • validateAssemblyConnector_assemblyConnectorsReferencedRequiredRoleAndChildContextMustMatch

      public boolean validateAssemblyConnector_assemblyConnectorsReferencedRequiredRoleAndChildContextMustMatch(AssemblyConnector assemblyConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the assemblyConnectorsReferencedRequiredRoleAndChildContextMustMatch constraint of 'Assembly Connector'.
      Generated class or method.
    • validateAssemblyConnector_assemblyConnectorsReferencedInterfacesMustMatch

      public boolean validateAssemblyConnector_assemblyConnectorsReferencedInterfacesMustMatch(AssemblyConnector assemblyConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the assemblyConnectorsReferencedInterfacesMustMatch constraint of 'Assembly Connector'.
      Generated class or method.
    • validateAssemblyEventConnector

      public boolean validateAssemblyEventConnector(AssemblyEventConnector assemblyEventConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateSourceDelegationConnector

      public boolean validateSourceDelegationConnector(SourceDelegationConnector sourceDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateSinkDelegationConnector

      public boolean validateSinkDelegationConnector(SinkDelegationConnector sinkDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateAssemblyInfrastructureConnector

      public boolean validateAssemblyInfrastructureConnector(AssemblyInfrastructureConnector assemblyInfrastructureConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateAssemblyInfrastructureConnector_referencedInfrastructureRequiredRoleNotRequiredByAssemblyContext

      public boolean validateAssemblyInfrastructureConnector_referencedInfrastructureRequiredRoleNotRequiredByAssemblyContext(AssemblyInfrastructureConnector assemblyInfrastructureConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the referencedInfrastructureRequiredRoleNotRequiredByAssemblyContext constraint of 'Assembly Infrastructure Connector'.
      Generated class or method.
    • validateAssemblyInfrastructureConnector_InfrastructureInterfacesNotCompatible

      public boolean validateAssemblyInfrastructureConnector_InfrastructureInterfacesNotCompatible(AssemblyInfrastructureConnector assemblyInfrastructureConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the InfrastructureInterfacesNotCompatible constraint of 'Assembly Infrastructure Connector'.
      Generated class or method.
    • validateAssemblyInfrastructureConnector_referencedInfrastructureProvidedRoleNotProvidedByAssemblyContext

      public boolean validateAssemblyInfrastructureConnector_referencedInfrastructureProvidedRoleNotProvidedByAssemblyContext(AssemblyInfrastructureConnector assemblyInfrastructureConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Validates the referencedInfrastructureProvidedRoleNotProvidedByAssemblyContext constraint of 'Assembly Infrastructure Connector'.
      Generated class or method.
    • validateProvidedInfrastructureDelegationConnector

      public boolean validateProvidedInfrastructureDelegationConnector(ProvidedInfrastructureDelegationConnector providedInfrastructureDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateRequiredInfrastructureDelegationConnector

      public boolean validateRequiredInfrastructureDelegationConnector(RequiredInfrastructureDelegationConnector requiredInfrastructureDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateRequiredResourceDelegationConnector

      public boolean validateRequiredResourceDelegationConnector(RequiredResourceDelegationConnector requiredResourceDelegationConnector, DiagnosticChain diagnostics, Map<Object,Object> context)
      Generated class or method.
    • validateAssemblyContext

      public boolean validateAssemblyContext(AssemblyContext assemblyContext, 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.