| <?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| <?eclipse version="3.4"?><plugin> |
| |
| <extension name="dsml.validation.generated.aas" point="org.eclipse.emf.validation.constraintProviders"> |
| <category id="org.eclipse.papyrus.aas.validation.aas" mandatory="false" name="Industry 4.0 Asset Administration Shell Model Validation"/> |
| <constraintProvider cache="false"> |
| <package namespaceUri="http://www.eclipse.org/uml2/5.0.0/UML"/> |
| <constraints categories="org.eclipse.papyrus.aas.validation.aas"> |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.AasContainsOnlySubmodels" |
| id="AAS.AssetAdministrationShell.containsOnlySubmodels" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Live" |
| name="AasContainsOnlySubmodels" |
| severity="ERROR" |
| statusCode="1"> |
| <message>The AAS must contain only submodels</message> |
| <description> |
| The AAS must contain only submodels |
| </description> |
| </constraint> |
| |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.SubmodelContainsOnlySubmodelElements" |
| id="AAS.Submodel.containsOnlySubmodelElements" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Live" |
| name="SubmodelContainsOnlySubmodelElements" |
| severity="ERROR" |
| statusCode="1"> |
| <message>The Submodel must contain only submodelElements</message> |
| <description> |
| The Submodel must contain only submodelElements |
| </description> |
| </constraint> |
| |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.AssetContainmentConstraint" |
| id="AAS.Asset.assetContainmentConstraint" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Live" |
| name="AssetContainmentConstraint" |
| severity="ERROR" |
| statusCode="1"> |
| <message>The Asset must not contain attributes, operations or sub component</message> |
| <description> |
| The Asset must not contain attributes, operations or sub component |
| </description> |
| </constraint> |
| |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.IdentifiableMustHaveIdentifier" |
| id="AAS.Identifiable.mustHaveIdentifier" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Batch" |
| name="IdentifiableMustHaveIdentifier" |
| severity="ERROR" |
| statusCode="1"> |
| <message>You must set the identification of the element</message> |
| <description> |
| The an Identifiable must have a the identification set |
| </description> |
| </constraint> |
| |
| |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.AasMustReferenceAnAsset" |
| id="AAS.AssetAdministrationShell.mustReferenceAnAsset" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Batch" |
| name="AasMustReferenceAnAsset" |
| severity="ERROR" |
| statusCode="1"> |
| <message>You must reference an asset from the AAS</message> |
| <description> |
| an AAS must reference an asset |
| </description> |
| </constraint> |
| |
| |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.SubmodelIdentificationConstraint" |
| id="AAS.Submodel.SubmodelIdentificationConstraint" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Batch" |
| name="SubmodelIdentificationConstraint" |
| severity="ERROR" |
| statusCode="1"> |
| <message>Submodel of ModelingKind - TEMPLATE does not support CUSTOM as IdentifierType</message> |
| <description> |
| Submodel of ModelingKind - TEMPLATE does not support CUSTOM as IdentifierType |
| </description> |
| </constraint> |
| |
| |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.PropertyMustBeTyped" |
| id="AAS.Property.PropertyMustBeTyped" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Batch" |
| name="PropertyMustBeTyped" |
| severity="ERROR" |
| statusCode="1"> |
| <message>Property must have a Type</message> |
| <description> |
| Property must have a Type |
| </description> |
| </constraint> |
| |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.ReferableIdshortConstraint" |
| id="AAS.Referable.ReferableIdshortConstraint" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Batch" |
| name="ReferableIdshortConstraint" |
| severity="ERROR" |
| statusCode="1"> |
| <message>IdShort must be defined and shall only feature letters, digits, underscore ("_"); starting mandatory with a letter </message> |
| <description> |
| IdShort must be defined and shall only feature letters, digits, underscore ("_"); starting mandatory with a letter |
| </description> |
| </constraint> |
| |
| |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.PropertyNodeIdConstraint" |
| id="AAS.Property.PropertyNodeIdConstraint" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Batch" |
| name="PropertyNodeIdConstraint" |
| severity="ERROR" |
| statusCode="1"> |
| <message>NodeId Identifier must have a value conformant to the NodeId Type</message> |
| <description> |
| NodeId Identifier must have a value conformant to the NodeId Type |
| </description> |
| </constraint> |
| |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.PropertyEndpointConstraint" |
| id="AAS.Property.PropertyEndpointConstraint" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Batch" |
| name="PropertyEndpointConstraint" |
| severity="ERROR" |
| statusCode="1"> |
| <message>Endpoint must be defined</message> |
| <description> |
| Endpoint must be defined |
| </description> |
| </constraint> |
| <constraint |
| class="org.eclipse.papyrus.aas.validation.constraints.AssetEndpointAddressConstraint" |
| id="AAS.Asset.URL" |
| isEnabledByDefault="true" |
| lang="java" |
| mode="Batch" |
| name="AssetEndpointAddressConstraint" |
| severity="ERROR" |
| statusCode="1"> |
| <message>The Endpoint address (URL) is not valid</message> |
| <description> |
| The Endpoint URL is not valid |
| </description> |
| </constraint> |
| </constraints> |
| |
| |
| |
| </constraintProvider> |
| </extension> |
| <extension name="dsml.validation.generated.aas" point="org.eclipse.emf.validation.constraintBindings"> |
| <clientContext |
| id="AssetAdministrationShellClientContext"> |
| <selector class="org.eclipse.papyrus.aas.validation.selector.ValidationDelegateClientSelector"/> |
| </clientContext> |
| <binding |
| |
| context="AssetAdministrationShellClientContext"> |
| <category |
| ref="org.eclipse.papyrus.aas.validation.aas"> |
| </category> |
| </binding> |
| </extension> |
| </plugin> |